Skip to content

Commit

Permalink
Merge pull request ixti#235 from danowar2k/ixti#234-fix-settings-class
Browse files Browse the repository at this point in the history
ixti#234: added migration to fix older ActiveRecord serialization of plugin settings
  • Loading branch information
PowerKiKi authored Sep 26, 2022
2 parents f2a6c19 + 773f67b commit ca85788
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions db/migrate/20220920194900_fix_settings_class.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class FixSettingsClass < ActiveRecord::Migration[4.2]
def up
new_settings = ActiveSupport::HashWithIndifferentAccess.new
Setting.plugin_redmine_tags.each do |key, value|
new_settings[key] = value
end
Setting.send "plugin_redmine_tags=", new_settings
end
end

0 comments on commit ca85788

Please sign in to comment.