5
db/migrate/20251209073711_add_start_time_to_contest.rb
Normal file
5
db/migrate/20251209073711_add_start_time_to_contest.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddStartTimeToContest < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :contests, :start_time, :datetime
|
||||
end
|
||||
end
|
||||
5
db/migrate/20251209075739_add_pause_time_to_contest.rb
Normal file
5
db/migrate/20251209075739_add_pause_time_to_contest.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddPauseTimeToContest < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :contests, :pause_time, :datetime
|
||||
end
|
||||
end
|
||||
@@ -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
5
db/schema.rb
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user