Add offline model and "new" form/controller
Some checks failed
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 15s
CI / lint (push) Failing after 14s
CI / test (push) Failing after 15m10s

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

12
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_10_28_131431) do
ActiveRecord::Schema[8.0].define(version: 2025_10_29_155116) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -125,6 +125,15 @@ ActiveRecord::Schema[8.0].define(version: 2025_10_28_131431) do
t.index ["contest_id"], name: "index_messages_on_contest_id"
end
create_table "offlines", force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "contest_id", null: false
t.datetime "start_time", null: false
t.datetime "end_time"
t.index ["contest_id"], name: "index_offlines_on_contest_id"
end
create_table "puzzles", force: :cascade do |t|
t.string "name"
t.datetime "created_at", null: false
@@ -165,6 +174,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_10_28_131431) do
add_foreign_key "contestants", "contests"
add_foreign_key "contests", "users"
add_foreign_key "messages", "contests"
add_foreign_key "offlines", "contests"
add_foreign_key "puzzles", "contests"
add_foreign_key "sessions", "users"
end