Make asking for missing pieces in forms optional
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2026-08-25 09:26:29 +02:00
parent 95c336be65
commit 00e14b7cff
9 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
class AddMissingPiecesToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :missing_pieces, :boolean
end
end

3
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: 2026_07_30_055752) do
ActiveRecord::Schema[8.0].define(version: 2026_08_25_071844) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -107,6 +107,7 @@ ActiveRecord::Schema[8.0].define(version: 2026_07_30_055752) do
t.boolean "show_stopwatch"
t.boolean "organizer_form"
t.integer "event_id"
t.boolean "missing_pieces"
t.index ["event_id"], name: "index_contests_on_event_id"
t.index ["slug"], name: "index_contests_on_slug", unique: true
t.index ["user_id"], name: "index_contests_on_user_id"