mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 09:13:46 +08:00
Refresh user's model in variables migration [SCI-2864]
This commit is contained in:
parent
70cc3742ad
commit
90b46c665d
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ class AddVariablesToUsers < ActiveRecord::Migration[5.1]
|
|||
|
||||
def up
|
||||
add_column :users, :variables, :jsonb, default: {}, null: false
|
||||
|
||||
User.reset_column_information
|
||||
User.update_all(variables: VARIABLES)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue