aboutsummaryrefslogblamecommitdiffstats
path: root/actionmailbox/db/migrate/20180917164000_create_action_mailbox_tables.rb
blob: 2bf43358089761de4eb110a65b4da0e40ae620f6 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
            
                                                      
                                                

                                              
 
                  
 
                                                                                                                      


       
class CreateActionMailboxTables < ActiveRecord::Migration[6.0]
  def change
    create_table :action_mailbox_inbound_emails do |t|
      t.integer :status, default: 0, null: false
      t.string  :message_id, null: false
      t.string  :message_checksum, null: false

      t.timestamps

      t.index [ :message_id, :message_checksum ], name: "index_action_mailbox_inbound_emails_uniqueness", unique: true
    end
  end
end