mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
16 lines
305 B
Ruby
16 lines
305 B
Ruby
|
class AddTooltipsEnabledToUserSettings < ActiveRecord::Migration[5.1]
|
||
|
def up
|
||
|
User.find_each do |user|
|
||
|
user.settings[:tooltips_enabled] = true
|
||
|
user.save
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
User.find_each do |user|
|
||
|
user.settings.delete(:tooltips_enabled)
|
||
|
user.save
|
||
|
end
|
||
|
end
|
||
|
end
|