Chatwoot/db/migrate/20210916112533_add_whatsapp_channel.rb
Sojan Jose bd7aeba484
chore: Provider API prototype (#3112)
Enabling Support for Whatsapp via 360Dialog as a prototype for the provider APIs. 

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2021-10-05 23:35:06 +05:30

11 lines
345 B
Ruby

class AddWhatsappChannel < ActiveRecord::Migration[6.1]
def change
create_table :channel_whatsapp do |t|
t.integer :account_id, null: false
t.string :phone_number, null: false, index: { unique: true }
t.string :provider, default: 'default'
t.jsonb :provider_config, default: {}
t.timestamps
end
end
end