Skip to content

Commit 912af7e

Browse files
committed
update test fixture schema to use timestamps instead of timestamp
- discovered via @wasifhossain - Update CHANGELOG.md
1 parent 6fbeb9a commit 912af7e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Breaking changes:
77
Features:
88

99
Fixes:
10+
- [#2319](https://github.com/rails-api/active_model_serializers/pull/2319) Fixes #2316. (@kylekeesling)
11+
- Fix Rails 6.0 deprication warnings
12+
- update test fixture schema to use `timestamps` instead of `timestamp`
1013

1114
Misc:
1215

test/fixtures/active_record.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,28 @@
1919
t.text :contents
2020
t.references :author
2121
t.references :post
22-
t.timestamp null: false
22+
t.timestamps null: false
2323
end
2424
create_table :employees, force: true do |t|
2525
t.string :name
2626
t.string :email
27-
t.timestamp null: false
27+
t.timestamps null: false
2828
end
2929
create_table :object_tags, force: true do |t|
3030
t.string :poly_tag_id
3131
t.string :taggable_type
3232
t.string :taggable_id
33-
t.timestamp null: false
33+
t.timestamps null: false
3434
end
3535
create_table :poly_tags, force: true do |t|
3636
t.string :phrase
37-
t.timestamp null: false
37+
t.timestamps null: false
3838
end
3939
create_table :pictures, force: true do |t|
4040
t.string :title
4141
t.string :imageable_type
4242
t.string :imageable_id
43-
t.timestamp null: false
43+
t.timestamps null: false
4444
end
4545
end
4646

0 commit comments

Comments
 (0)