Add offline model and "new" form/controller

This commit is contained in:
sto
2025-10-29 17:20:38 +01:00
parent a8f1ffd920
commit 35ad7da355
10 changed files with 158 additions and 2 deletions

View 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