Fix time format in migration
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									f0d5457ec1
								
							
						
					
					
						commit
						5a5c316c14
					
				| @ -3,7 +3,7 @@ class AddSettledAtToZaps < ActiveRecord::Migration[7.1] | ||||
|     add_column :zaps, :settled_at, :datetime, default: nil | ||||
| 
 | ||||
|     Zap.where.not(receipt: nil).each do |zap| | ||||
|       zap.update! settled_at: zap.receipt_event.created_at | ||||
|       zap.update! settled_at: Time.at(zap.receipt_event.created_at).to_datetime | ||||
|     end | ||||
|   end | ||||
| end | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user