chore: Whatsapp templates fix for 360 dialog (#3479)

Fixes: #3426
This commit is contained in:
Sojan Jose
2021-11-30 20:50:35 +05:30
committed by GitHub
parent 0899f62912
commit d5c30760a7
7 changed files with 215 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
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