mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
update test fixture schema to use timestamps instead of timestamp
- discovered via @wasifhossain - Update CHANGELOG.md
This commit is contained in:
parent
6fbeb9a93e
commit
912af7ef91
@ -7,6 +7,9 @@ Breaking changes:
|
||||
Features:
|
||||
|
||||
Fixes:
|
||||
- [#2319](https://github.com/rails-api/active_model_serializers/pull/2319) Fixes #2316. (@kylekeesling)
|
||||
- Fix Rails 6.0 deprication warnings
|
||||
- update test fixture schema to use `timestamps` instead of `timestamp`
|
||||
|
||||
Misc:
|
||||
|
||||
|
||||
10
test/fixtures/active_record.rb
vendored
10
test/fixtures/active_record.rb
vendored
@ -19,28 +19,28 @@ ActiveRecord::Schema.define do
|
||||
t.text :contents
|
||||
t.references :author
|
||||
t.references :post
|
||||
t.timestamp null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
create_table :employees, force: true do |t|
|
||||
t.string :name
|
||||
t.string :email
|
||||
t.timestamp null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
create_table :object_tags, force: true do |t|
|
||||
t.string :poly_tag_id
|
||||
t.string :taggable_type
|
||||
t.string :taggable_id
|
||||
t.timestamp null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
create_table :poly_tags, force: true do |t|
|
||||
t.string :phrase
|
||||
t.timestamp null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
create_table :pictures, force: true do |t|
|
||||
t.string :title
|
||||
t.string :imageable_type
|
||||
t.string :imageable_id
|
||||
t.timestamp null: false
|
||||
t.timestamps null: false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user