Fix user settings migration script failing in some cases (#24453)

local
Claire 1 year ago committed by GitHub
parent 3d8bd093b9
commit 369f239f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      db/migrate/20230215074423_move_user_settings.rb

@ -52,7 +52,7 @@ class MoveUserSettings < 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