Add contest duration & complete ranking mode implementation
Some checks failed
CI / scan_ruby (push) Successful in 21s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 13s
CI / test (push) Failing after 37s

This commit is contained in:
sto
2025-11-18 09:18:18 +01:00
parent b88460ae71
commit e67ee92838
12 changed files with 62 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
class AddDurationToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :duration, :string
end
end

View File

@@ -0,0 +1,5 @@
class AddDurationSecondsToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :duration_seconds, :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_14_093213) do
ActiveRecord::Schema[8.0].define(version: 2025_11_18_074914) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -98,6 +98,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_14_093213) do
t.boolean "public", default: false
t.boolean "offline_form", default: false
t.string "ranking_mode"
t.string "duration"
t.integer "duration_seconds"
t.index ["slug"], name: "index_contests_on_slug", unique: true
t.index ["user_id"], name: "index_contests_on_user_id"
end