Add allow registration switch
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddRegistrationSwitchToContest < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :contests, :allow_registration, :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_03_15_112506) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_03_15_114657) do
|
||||
create_table "active_storage_attachments", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.string "record_type", null: false
|
||||
@@ -45,6 +45,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_15_112506) do
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.boolean "team", default: false
|
||||
t.boolean "allow_registration", default: false
|
||||
t.index ["user_id"], name: "index_contests_on_user_id"
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user