From a823b7d56f53ecfda6802343d83d8da45e5cb3b1 Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 17 Jan 2019 14:14:45 -0600 Subject: 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. --- actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionmailbox/db') 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 -- cgit v1.2.3