Skip to content

Commit

Permalink
Fix: rails 5 and database datetime default precision is different
Browse files Browse the repository at this point in the history
  • Loading branch information
OuYangJinTing committed Apr 9, 2020
1 parent e1ccb2d commit 14f4884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/model/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
t.integer :books_count, default: 0
t.integer :images_count, default: 0
t.datetime :deleted_at
t.timestamps null: false
t.timestamps null: false, precision: 6
end

ActiveRecord::Base.connection.create_table(:forked_user_links, force: true) do |t|
Expand Down

0 comments on commit 14f4884

Please sign in to comment.