Skip to content
Snippets Groups Projects
Unverified Commit 369f239f authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent 3d8bd093
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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