Browse Source

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

lets-bump-hometown-to-mastodon-4.2
Claire 3 years ago committed by GitHub
parent
commit
369f239f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      db/migrate/20230215074423_move_user_settings.rb

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