Public scoreboard stopwatch feature
All checks were successful
CI / scan_ruby (push) Successful in 21s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 14s
CI / test (push) Successful in 36s

#10
This commit is contained in:
sto
2025-12-09 10:10:54 +01:00
parent ee250b96ad
commit cce090587a
19 changed files with 167 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
class AddStartTimeToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :start_time, :datetime
end
end

View File

@@ -0,0 +1,5 @@
class AddPauseTimeToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :pause_time, :datetime
end
end

View File

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

5
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_12_04_100550) do
ActiveRecord::Schema[8.0].define(version: 2025_12_09_081941) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -103,6 +103,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_12_04_100550) do
t.string "duration"
t.integer "duration_seconds"
t.string "code"
t.datetime "start_time"
t.datetime "pause_time"
t.boolean "show_stopwatch"
t.index ["slug"], name: "index_contests_on_slug", unique: true
t.index ["user_id"], name: "index_contests_on_user_id"
end