diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2019-01-17 14:14:45 -0600 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2019-01-17 14:14:45 -0600 |
commit | a823b7d56f53ecfda6802343d83d8da45e5cb3b1 (patch) | |
tree | aafddcf45297d3265d4ca14b97d33a9a049852a6 /actionmailbox/db/migrate | |
parent | 5cd733a334846669d6435517f7d9913c4a9b1eb1 (diff) | |
download | rails-a823b7d56f53ecfda6802343d83d8da45e5cb3b1.tar.gz rails-a823b7d56f53ecfda6802343d83d8da45e5cb3b1.tar.bz2 rails-a823b7d56f53ecfda6802343d83d8da45e5cb3b1.zip |
Specify a name for [ message_id, message_checksum ] index to ensure the name does not exceed the limit.
Also, update test schema to reflect the recent changes.
Diffstat (limited to 'actionmailbox/db/migrate')
-rw-r--r-- | actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb | 2 |
1 files changed, 1 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 e697748f82..550cc0e4e5 100644 --- a/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb +++ b/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb @@ -8,7 +8,7 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0] t.datetime :created_at, precision: 6, null: false t.datetime :updated_at, precision: 6, null: false - t.index [ :message_id, :message_checksum ], unique: true + t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true end end end |