Chatwoot/db/migrate/20211129120040_add_templates_to_whatsapp_channel.rb
2021-11-30 20:50:35 +05:30

15 lines
422 B
Ruby

class AddTemplatesToWhatsappChannel < ActiveRecord::Migration[6.1]
def up
change_table :channel_whatsapp, bulk: true do |t|
t.column :message_templates, :jsonb, default: {}
t.column :message_templates_last_updated, :datetime
end
end
def down
change_table :channel_whatsapp, bulk: true do |t|
t.remove :message_templates
t.remove :message_templates_last_updated
end
end
end