Skip to content

Commit

Permalink
Fixes #36006 - Migration error 'column settings.category does not exist'
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos authored and ekohl committed Feb 15, 2023
1 parent 75cf8c4 commit 9b52424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9b52424

Please sign in to comment.