diff --git a/db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb b/db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb index 6fd1b5aa..cd40cfc0 100644 --- a/db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb +++ b/db/migrate/20221102065954_fix_discovery_settings_category_to_dsl.rb @@ -3,7 +3,7 @@ class FixDiscoverySettingsCategoryToDsl < ActiveRecord::Migration[6.0] def up # rubocop:disable Rails/SkipsModelValidations - Setting.where(category: 'Setting::Discovered').update_all(category: 'Setting') + Setting.where(category: 'Setting::Discovered').update_all(category: 'Setting') if column_exists?(:settings, :category) # rubocop:enable Rails/SkipsModelValidations end end