From b57ec6ad6b0ab28ffc7f75c7a7183960b70a2c11 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 21 Sep 2023 15:17:44 +0200 Subject: [PATCH] Fix some settings not being properly migrated when set to `false` --- 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 e47a84ebc..48bb6f97e 100644 --- a/db/migrate/20230215074424_move_glitch_user_settings.rb +++ b/db/migrate/20230215074424_move_glitch_user_settings.rb @@ -42,7 +42,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1] MAPPING.each do |legacy_key, new_key| value = previous_settings[legacy_key]&.value - next if value.blank? + next if value.nil? if value.is_a?(Hash) value.each do |nested_key, nested_value|