Chatwoot/db/migrate/20210109211805_add_ui_settings_to_users.rb
Pranav Raj S 160a6fc6cf
feat: Save UI state in the database (#1635)
feat: Save UI state in the database
2021-01-10 19:25:33 +05:30

9 lines
199 B
Ruby

class AddUiSettingsToUsers < ActiveRecord::Migration[6.0]
def up
add_column :users, :ui_settings, :jsonb, default: {}
end
def down
remove_column :users, :ui_settings, :jsonb
end
end