aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-26 23:37:17 +0900
committerGitHub <noreply@github.com>2019-01-26 23:37:17 +0900
commit5a8f0c7226b2b16c9cf1b6ef5478fe5603348e17 (patch)
tree61807c95af11f48d9d31a47ef7599f39c08794ac /actionmailbox
parentd90593d0deabb90ac5cfdf767f2f037337bb4d31 (diff)
parent57015cdfa2083351f64a82f7566965172a41efcb (diff)
downloadrails-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.rb6
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