Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Jan 22, 2019
1 parent 6cfded7 commit 8f58f67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## 2.0.0 - Unreleased
## 2.0.0 - 2018-01-22

- [#11](https://github.com/westonganger/paper_trail-association_tracking/issues/11) - Remove null constraint on `version_associations.foreign_type` column which was added in `v1.1.0`. This fixes issues adding the column to existing projects who are upgrading.
- Add generator `rails g paper_trail_association_tracking:add_foreign_type_to_version_associations` for `versions_associations.foreign_type` column for upgrading applications from `v1.0.0` or earlier.
Expand Down
2 changes: 1 addition & 1 deletion lib/paper_trail_association_tracking/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module PaperTrailAssociationTracking
VERSION = "1.1.1"
VERSION = "2.0.0"
end
2 changes: 1 addition & 1 deletion spec/dummy_app/app/models/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# being named `versions`, it will be named `paper_trail_versions`.
class Document < ActiveRecord::Base
has_paper_trail(
versions: :paper_trail_versions,
versions: {name: :paper_trail_versions},
on: %i[create update]
)
end

0 comments on commit 8f58f67

Please sign in to comment.