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
Tags v0.2.0
No related merge requests found
Pipeline #91408 passed
......@@ -2,6 +2,7 @@
class ConvertSettingsToDsl < ActiveRecord::Migration[6.0]
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
# frozen_string_literal: true
module ForemanNotificationSend
VERSION = '0.4.0'
VERSION = '0.4.1'
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