OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/db/migrate/20190124081710_remove_acces...

16 lines
346 B

class RemoveAccessibilityMode < ActiveRecord::Migration[5.2]
def change
remove_column :user_preferences, :impaired
delete_accessibility_mode_from_settings
end
private
def delete_accessibility_mode_from_settings
delete <<-SQL
DELETE FROM settings
WHERE name = 'accessibility_mode_for_anonymous'
SQL
end
end