Fix some settings not being properly migrated when set to `false`
parent
6760e67c64
commit
b57ec6ad6b
|
@ -42,7 +42,7 @@ class MoveGlitchUserSettings < ActiveRecord::Migration[6.1]
|
||||||
MAPPING.each do |legacy_key, new_key|
|
MAPPING.each do |legacy_key, new_key|
|
||||||
value = previous_settings[legacy_key]&.value
|
value = previous_settings[legacy_key]&.value
|
||||||
|
|
||||||
next if value.blank?
|
next if value.nil?
|
||||||
|
|
||||||
if value.is_a?(Hash)
|
if value.is_a?(Hash)
|
||||||
value.each do |nested_key, nested_value|
|
value.each do |nested_key, nested_value|
|
||||||
|
|
Loading…
Reference in New Issue