about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-04-07 11:55:15 +0200
committerGitHub <noreply@github.com>2023-04-07 11:55:15 +0200
commit369f239f7b6ba7a02a3cd514e11b2f272bc2d377 (patch)
tree381a3fed578d2db9da980384fb91678bfbe80aac
parent3d8bd093b9197659563070d2c763988428063406 (diff)
Fix user settings migration script failing in some cases (#24453)
-rw-r--r--db/migrate/20230215074423_move_user_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20230215074423_move_user_settings.rb b/db/migrate/20230215074423_move_user_settings.rb
index 351a8b61d..8dbca9ecd 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