Chatwoot/db/migrate/20200715124113_create_email_channel.rb
2020-07-21 12:15:24 +05:30

10 lines
319 B
Ruby

class CreateEmailChannel < ActiveRecord::Migration[6.0]
def change
create_table :channel_email do |t|
t.integer :account_id, null: false
t.string :email, null: false, index: { unique: true }
t.string :forward_to_address, null: false, index: { unique: true }
t.timestamps
end
end
end