Allow to delete puzzles
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
sto
2025-03-16 15:00:54 +01:00
parent 785e523ebe
commit 6f07ec802f
4 changed files with 7 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
class Puzzle < ApplicationRecord
belongs_to :contest, dependent: :destroy
belongs_to :contest
has_one_attached :image
validates :name, presence: true
end