[Glitch] Fix user settings migration script failing in some cases

local
Claire 1 year ago
parent bfe46d08f9
commit 251c5ed22e
  1. 2
      db/migrate/20230215074424_move_glitch_user_settings.rb

@ -24,7 +24,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1]
end
def value
YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess]) if self[:value].present?
YAML.safe_load(self[:value], permitted_classes: [ActiveSupport::HashWithIndifferentAccess, Symbol]) if self[:value].present?
end
end

Loading…
Cancel
Save