aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/test/dummy/db
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2019-01-17 14:14:45 -0600
committerPratik Naik <pratiknaik@gmail.com>2019-01-17 14:14:45 -0600
commita823b7d56f53ecfda6802343d83d8da45e5cb3b1 (patch)
treeaafddcf45297d3265d4ca14b97d33a9a049852a6 /actionmailbox/test/dummy/db
parent5cd733a334846669d6435517f7d9913c4a9b1eb1 (diff)
downloadrails-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/test/dummy/db')
-rw-r--r--actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb6
-rw-r--r--actionmailbox/test/dummy/db/schema.rb8
2 files changed, 7 insertions, 7 deletions
diff --git a/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb b/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb
index f587f37095..550cc0e4e5 100644
--- a/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb
+++ b/actionmailbox/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb
@@ -5,10 +5,10 @@ class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
t.string :message_id, null: false
t.string :message_checksum, null: false
- t.datetime :created_at, precision: 6
- t.datetime :updated_at, precision: 6
+ 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
diff --git a/actionmailbox/test/dummy/db/schema.rb b/actionmailbox/test/dummy/db/schema.rb
index 4aba92bfc6..8a11c3fbe1 100644
--- a/actionmailbox/test/dummy/db/schema.rb
+++ b/actionmailbox/test/dummy/db/schema.rb
@@ -14,10 +14,10 @@ ActiveRecord::Schema.define(version: 2018_02_12_164506) do
create_table "action_mailbox_inbound_emails", force: :cascade do |t|
t.integer "status", default: 0, null: false
- t.string "message_id"
- t.string "message_checksum"
- t.datetime "created_at", precision: 6
- t.datetime "updated_at", precision: 6
+ t.string "message_id", null: false
+ t.string "message_checksum", null: false
+ t.datetime "created_at", precision: 6, null: false
+ t.datetime "updated_at", precision: 6, null: false
t.index ["message_id", "message_checksum"], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
end