From 9b52424c51b00c21b3a3457faea19c6292e38b34 Mon Sep 17 00:00:00 2001 From: Leos Stejskal Date: Thu, 26 Jan 2023 14:25:08 +0100 Subject: [PATCH] Fixes #36006 - Migration error 'column settings.category does not exist' --- .../20221102065954_fix_discovery_settings_category_to_dsl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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