diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-26 23:37:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 23:37:17 +0900 |
commit | 5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17 (patch) | |
tree | 61807c95af11f48d9d31a47ef7599f39c08794ac /actionmailbox | |
parent | d90593d0deabb90ac5cfdf767f2f037337bb4d31 (diff) | |
parent | 57015cdfa2083351f64a82f7566965172a41efcb (diff) | |
download | rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.tar.gz rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.tar.bz2 rails-5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17.zip |
Merge pull request #34970 from kamipo/timestamps_with_precision_by_default
Make `t.timestamps` with precision by default.
Diffstat (limited to 'actionmailbox')
-rw-r--r-- | actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailbox_tables.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailbox_tables.rb b/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailbox_tables.rb index 89ab66c1a9..2bf4335808 100644 --- a/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailbox_tables.rb +++ b/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailbox_tables.rb @@ -5,11 +5,7 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0] t.string :message_id, null: false t.string :message_checksum, null: false - if supports_datetime_with_precision? - t.timestamps precision: 6 - else - t.timestamps - end + t.timestamps t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true end |