about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-04-09 14:48:34 +0200
committerClaire <claire.github-309c@sitedethib.com>2023-04-09 14:48:34 +0200
commit251c5ed22e606057b5ca222a579a3fa96d487ad4 (patch)
tree91df3a72a5f4d1d4afbf4e73ab685b21e6625307
parentbfe46d08f97b4b19ab6f86c32be01cce945517d0 (diff)
[Glitch] Fix user settings migration script failing in some cases
-rw-r--r--db/migrate/20230215074424_move_glitch_user_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20230215074424_move_glitch_user_settings.rb b/db/migrate/20230215074424_move_glitch_user_settings.rb
index 6b5a25925..76fafdd76 100644
--- a/db/migrate/20230215074424_move_glitch_user_settings.rb
+++ b/db/migrate/20230215074424_move_glitch_user_settings.rb
@@ -24,7 +24,7 @@ class MoveGlitchUserSettings < 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