Add migration tests for negative settings (#27012)
This commit is contained in:
		@@ -69,7 +69,7 @@ class MoveUserSettings < 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|
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user