Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Nov 7, 2024
1 parent 25c25cb commit 1ff59f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CHANGELOG

- **Unreleased**
* [View Diff](https://github.com/westonganger/active_snapshot/compare/v0.4.0...master)
* [#60](https://github.com/westonganger/active_snapshot/pull/60) - Store enum value as integer
* [#56](https://github.com/westonganger/active_snapshot/pull/56) - Add presence validation for object in SnapshotItem model
* [#57](https://github.com/westonganger/active_snapshot/pull/57) - Add readonly argument to Shapshot#fetch_reified_items
* [#53](https://github.com/westonganger/active_snapshot/pull/53) - Allow `ActiveSnapshot.config` to be called before ActiveRecord `on_load` hook has occurred
Expand Down
6 changes: 5 additions & 1 deletion test/dummy_app/app/models/post.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
class Post < ActiveRecord::Base
include ActiveSnapshot

enum status: [:draft, :published]
if Rails::VERSION::MAJOR >= 7
enum :status, [:draft, :published]
else
enum status: [:draft, :published]
end

has_many :comments
has_many :notes
Expand Down

0 comments on commit 1ff59f9

Please sign in to comment.