1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This commit is contained in:
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

View file

@ -52,7 +52,7 @@ class MoveUserSettings < ActiveRecord::Migration[6.1]
end end
def value 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
end end