Fix user settings migration script failing in some cases (#24453)
This commit is contained in:
		
							parent
							
								
									f91018b5c2
								
							
						
					
					
						commit
						eb30deb2e5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -52,7 +52,7 @@ class MoveUserSettings < 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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue