Skip to content

Commit

Permalink
Set precision so that there is no difference between DB and applica…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
osyo-manga committed Aug 31, 2020
1 parent 27a5ac7 commit 64cbb20
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions spec/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
t.string :name

t.integer :bitemporal_id
t.datetime :valid_from
t.datetime :valid_to
t.datetime :deleted_at
t.datetime :transaction_from
t.datetime :transaction_to
t.datetime :valid_from, precision: 6
t.datetime :valid_to, precision: 6
t.datetime :deleted_at, precision: 6
t.datetime :transaction_from, precision: 6
t.datetime :transaction_to, precision: 6

t.timestamps
end
Expand All @@ -27,11 +27,11 @@
t.integer :companies_id

t.integer :bitemporal_id
t.datetime :valid_from
t.datetime :valid_to
t.datetime :deleted_at
t.datetime :transaction_from
t.datetime :transaction_to
t.datetime :valid_from, precision: 6
t.datetime :valid_to, precision: 6
t.datetime :deleted_at, precision: 6
t.datetime :transaction_from, precision: 6
t.datetime :transaction_to, precision: 6

t.timestamps
end
Expand All @@ -53,11 +53,11 @@
t.string :name

t.integer :bitemporal_id
t.datetime :valid_from
t.datetime :valid_to
t.datetime :deleted_at
t.datetime :transaction_from
t.datetime :transaction_to
t.datetime :valid_from, precision: 6
t.datetime :valid_to, precision: 6
t.datetime :deleted_at, precision: 6
t.datetime :transaction_from, precision: 6
t.datetime :transaction_to, precision: 6

t.timestamps
end
Expand Down

0 comments on commit 64cbb20

Please sign in to comment.