gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/dev
Claire 2023-04-07 11:55:15 +02:00 committed by GitHub
parent 3d8bd093b9
commit 369f239f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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