Add public scoreboard slug & URL
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

This commit is contained in:
sto
2025-03-22 18:21:13 +01:00
parent d47ebf22ab
commit 9a2a3a6f33
10 changed files with 31 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
class AddSlugToContest < ActiveRecord::Migration[8.0]
def change
add_column :contests, :slug, :string
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: 2025_03_22_071308) do
ActiveRecord::Schema[8.0].define(version: 2025_03_22_164205) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -67,6 +67,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_22_071308) do
t.datetime "updated_at", null: false
t.boolean "team", default: false
t.boolean "allow_registration", default: false
t.string "slug"
t.index ["user_id"], name: "index_contests_on_user_id"
end