Add precision: 6 to books.{created,updated}_at test table
Some tests will require precision.
This commit is contained in:
parent
da41061b4e
commit
58cfa9259d
|
@ -119,8 +119,13 @@ ActiveRecord::Schema.define do
|
||||||
t.index :isbn, where: "published_on IS NOT NULL", unique: true
|
t.index :isbn, where: "published_on IS NOT NULL", unique: true
|
||||||
t.index "(lower(external_id))", unique: true if supports_expression_index?
|
t.index "(lower(external_id))", unique: true if supports_expression_index?
|
||||||
|
|
||||||
t.datetime :created_at
|
if supports_datetime_with_precision?
|
||||||
t.datetime :updated_at
|
t.datetime :created_at, precision: 6
|
||||||
|
t.datetime :updated_at, precision: 6
|
||||||
|
else
|
||||||
|
t.datetime :created_at
|
||||||
|
t.datetime :updated_at
|
||||||
|
end
|
||||||
t.date :updated_on
|
t.date :updated_on
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue