mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 08:26:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			No EOL
		
	
	
		
			288 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			No EOL
		
	
	
		
			288 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class AddEmptyFieldToAsset < ActiveRecord::Migration
 | |
|   def up
 | |
|     add_column :assets, :file_present, :boolean, default: false
 | |
|     Asset.update_all(file_present: true)
 | |
|     change_column_null :assets, :file_present, false
 | |
|   end
 | |
| 
 | |
|   def down
 | |
|     remove_column :assets, :file_present
 | |
|   end
 | |
| end |