Add contest param for offline form participation
This commit is contained in:
5
db/migrate/20251030092221_add_offline_form_to_contest.rb
Normal file
5
db/migrate/20251030092221_add_offline_form_to_contest.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddOfflineFormToContest < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :contests, :offline_form, :boolean, default: false
|
||||
end
|
||||
end
|
||||
3
db/schema.rb
generated
3
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_10_29_155116) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_10_30_092221) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -92,6 +92,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_10_29_155116) do
|
||||
t.string "slug"
|
||||
t.string "lang", default: "en"
|
||||
t.boolean "public", default: false
|
||||
t.boolean "offline_form", default: false
|
||||
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