Chatwoot/db/migrate/20200715124113_create_email_channel.rb

11 lines
319 B
Ruby
Raw Permalink Normal View History

2020-07-21 06:45:24 +00:00
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