diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-29 06:37:42 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-01-29 06:37:42 +0900 |
commit | b8baa15adb1eccb49d2cfa16616e24095a012ba5 (patch) | |
tree | 3927a61858291be1c5a1fd9c139676faf9ee8378 /actionmailbox/db | |
parent | 8f8d8b3c19b88d3f51f83872328847f45fc78de4 (diff) | |
download | rails-b8baa15adb1eccb49d2cfa16616e24095a012ba5.tar.gz rails-b8baa15adb1eccb49d2cfa16616e24095a012ba5.tar.bz2 rails-b8baa15adb1eccb49d2cfa16616e24095a012ba5.zip |
Revert "Apply `t.timestamps` changes in Action Text and Action Mailbox"
This reverts commit 30f666f87ab873258b797b39f29cf852f7621bea.
Diffstat (limited to 'actionmailbox/db')
-rw-r--r-- | actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb b/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb index 2bf4335808..89ab66c1a9 100644 --- a/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb +++ b/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb @@ -5,7 +5,11 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0] t.string :message_id, null: false t.string :message_checksum, null: false - t.timestamps + if supports_datetime_with_precision? + t.timestamps precision: 6 + else + t.timestamps + end t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true end |