feat: Save UI state in the database (#1635)
feat: Save UI state in the database
This commit is contained in:
9
db/migrate/20210109211805_add_ui_settings_to_users.rb
Normal file
9
db/migrate/20210109211805_add_ui_settings_to_users.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
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
|
||||
Reference in New Issue
Block a user