From 251c5ed22e606057b5ca222a579a3fa96d487ad4 Mon Sep 17 00:00:00 2001 From: Claire Date: Sun, 9 Apr 2023 14:48:34 +0200 Subject: [Glitch] Fix user settings migration script failing in some cases --- db/migrate/20230215074424_move_glitch_user_settings.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit