~cytrogen/masto-fe

251c5ed22e606057b5ca222a579a3fa96d487ad4 — Claire 3 years ago bfe46d0
[Glitch] Fix user settings migration script failing in some cases
1 files changed, 1 insertions(+), 1 deletions(-)

M db/migrate/20230215074424_move_glitch_user_settings.rb
M db/migrate/20230215074424_move_glitch_user_settings.rb => db/migrate/20230215074424_move_glitch_user_settings.rb +1 -1
@@ 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