Chatwoot/db/migrate/20210425093724_convert_integration_hook_settings_field.rb
Sojan Jose b30ecb27a6
feat: Add APIs for Dialogflow integration V1 (#2155)
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
2021-05-05 21:06:11 +05:30

6 lines
219 B
Ruby

class ConvertIntegrationHookSettingsField < ActiveRecord::Migration[6.0]
def change
remove_column :integrations_hooks, :settings, :text
add_column :integrations_hooks, :settings, :jsonb, default: {}
end
end