Add hidden setting to puzzles
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 14s
CI / test (push) Successful in 36s

#19
This commit is contained in:
sto
2025-12-04 11:35:41 +01:00
parent a2a8a9fcef
commit 51e55f0828
11 changed files with 36 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
class AddHiddenToPuzzle < ActiveRecord::Migration[8.0]
def change
add_column :puzzles, :hidden, :boolean
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_11_20_152211) do
ActiveRecord::Schema[8.0].define(version: 2025_12_04_100550) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -161,6 +161,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_20_152211) do
t.integer "contest_id", null: false
t.string "brand"
t.integer "pieces", null: false
t.boolean "hidden"
t.index ["contest_id"], name: "index_puzzles_on_contest_id"
end