11 lines
		
	
	
		
			215 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			215 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class CreateContests < ActiveRecord::Migration[8.0]
 | |
|   def change
 | |
|     create_table :contests do |t|
 | |
|       t.string :name
 | |
|       t.belongs_to :user, null: false, foreign_key: true
 | |
| 
 | |
|       t.timestamps
 | |
|     end
 | |
|   end
 | |
| end
 |