From 369f239f7b6ba7a02a3cd514e11b2f272bc2d377 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 7 Apr 2023 11:55:15 +0200 Subject: [PATCH] Fix user settings migration script failing in some cases (#24453) --- db/migrate/20230215074423_move_user_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20230215074423_move_user_settings.rb b/db/migrate/20230215074423_move_user_settings.rb index 351a8b61df..8dbca9ecd2 100644 --- a/db/migrate/20230215074423_move_user_settings.rb +++ b/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