Fix completion deps for puzzle deletion

This commit is contained in:
sto
2025-07-16 10:39:59 +02:00
parent 4ca711f5aa
commit 5b9862c19c

View File

@@ -21,7 +21,7 @@
class Puzzle < ApplicationRecord
belongs_to :contest
has_many :completions
has_many :completions, dependent: :destroy
has_one_attached :image
validates :name, presence: true