feat: Add a pre-chat form on widget (#1769)

This commit is contained in:
Pranav Raj S
2021-02-16 00:14:13 +05:30
committed by GitHub
parent 5f2bf7dfd2
commit 037ffc7419
31 changed files with 604 additions and 200 deletions

View File

@@ -0,0 +1,15 @@
class AddRequestForEmailOnChannelWebWidget < ActiveRecord::Migration[6.0]
def up
change_table :channel_web_widgets, bulk: true do |t|
t.column :pre_chat_form_enabled, :boolean, default: false
t.column :pre_chat_form_options, :jsonb, default: {}
end
end
def down
change_table :channel_web_widgets, bulk: true do |t|
t.remove :pre_chat_form_enabled
t.remove :pre_chat_form_options
end
end
end