2018-12-29 20:04:17 -05:00
|
|
|
class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
|
2018-09-17 19:55:07 -04:00
|
|
|
def change
|
2018-09-28 15:19:43 -04:00
|
|
|
create_table :action_mailbox_inbound_emails do |t|
|
2018-09-17 19:55:07 -04:00
|
|
|
t.integer :status, default: 0, null: false
|
2019-01-17 12:13:40 -05:00
|
|
|
t.string :message_id, null: false
|
|
|
|
t.string :message_checksum, null: false
|
2018-09-17 19:55:07 -04:00
|
|
|
|
2019-01-25 08:01:07 -05:00
|
|
|
t.timestamps
|
2019-01-17 12:13:40 -05:00
|
|
|
|
2019-01-17 15:14:45 -05:00
|
|
|
t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
|
2018-09-17 19:55:07 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|