mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 10:12:34 +00:00
- feature to store contact IP for accounts - IP lookup through geocoder gem - ability to do IP lookup through external APIs - add commit hook to prevent push to develop and master - migrations to fix default values for jsonb columns
9 lines
439 B
Ruby
9 lines
439 B
Ruby
class AddDefaultValueToJsonbColums < ActiveRecord::Migration[6.0]
|
|
def change
|
|
change_column_default :contacts, :additional_attributes, from: nil, to: {}
|
|
change_column_default :conversations, :additional_attributes, from: nil, to: {}
|
|
change_column_default :installation_configs, :serialized_value, from: '{}', to: {}
|
|
change_column_default :notification_subscriptions, :subscription_attributes, from: '{}', to: {}
|
|
end
|
|
end
|