Add offline model and "new" form/controller
This commit is contained in:
		
							
								
								
									
										10
									
								
								db/migrate/20251029155116_create_offlines.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								db/migrate/20251029155116_create_offlines.rb
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| class CreateOfflines < ActiveRecord::Migration[8.0] | ||||
|   def change | ||||
|     create_table :offlines do |t| | ||||
|       t.timestamps | ||||
|       t.belongs_to :contest, null: false, foreign_key: true | ||||
|       t.datetime :start_time, null: false | ||||
|       t.datetime :end_time | ||||
|     end | ||||
|   end | ||||
| end | ||||
		Reference in New Issue
	
	Block a user