1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb

14 lines
426 B
Ruby
Raw Normal View History

class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
2018-09-17 19:55:07 -04:00
def change
create_table :action_mailbox_inbound_emails do |t|
2018-09-17 19:55:07 -04:00
t.integer :status, default: 0, null: false
t.string :message_id, null: false
t.string :message_checksum, null: false
2018-09-17 19:55:07 -04:00
t.timestamps
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