12 lines
		
	
	
		
			216 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			216 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class RemoveDevices < ActiveRecord::Migration[5.0]
 | |
|   def up
 | |
|     drop_table :devices if table_exists?(:devices)
 | |
|   end
 | |
| 
 | |
|   def down
 | |
|     raise ActiveRecord::IrreversibleMigration
 | |
|   end
 | |
| end
 |