mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
15 lines
305 B
Ruby
15 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
|