Offline participation form: ask for missing/remaining pieces
All checks were successful
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 30s

This commit is contained in:
sto
2025-11-08 09:55:56 +01:00
parent 69a82f4d3f
commit d1df551a0c
12 changed files with 118 additions and 35 deletions

View File

@@ -0,0 +1,5 @@
class AddMissingPiecesToOffline < ActiveRecord::Migration[8.0]
def change
add_column :offlines, :missing_pieces, :integer
end
end

View File

@@ -0,0 +1,5 @@
class AddRemainingPiecesToOffline < ActiveRecord::Migration[8.0]
def change
add_column :offlines, :remaining_pieces, :integer
end
end

4
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_11_05_153647) do
ActiveRecord::Schema[8.0].define(version: 2025_11_08_082751) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -135,6 +135,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_05_153647) do
t.string "name", null: false
t.boolean "completed"
t.integer "contestant_id"
t.integer "missing_pieces"
t.integer "remaining_pieces"
t.index ["contest_id"], name: "index_offlines_on_contest_id"
t.index ["contestant_id"], name: "index_offlines_on_contestant_id"
end