Skip to content
Snippets Groups Projects
Verified Commit 045f722a authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Fix settings DSL migration

parent a8275c22
No related branches found
No related tags found
No related merge requests found
Pipeline #91408 passed
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
class ConvertSettingsToDsl < ActiveRecord::Migration[6.0] class ConvertSettingsToDsl < ActiveRecord::Migration[6.0]
def up def up
Settings.where(category: 'Setting::NotificationSend').update_all(category: 'Setting') Setting.where(category: 'Setting::NotificationSend').update_all(category: 'Setting') \
if column_exists?(:settings, :category)
end end
end end
# frozen_string_literal: true # frozen_string_literal: true
module ForemanNotificationSend module ForemanNotificationSend
VERSION = '0.4.0' VERSION = '0.4.1'
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment