Fix completion deps for puzzle deletion
This commit is contained in:
parent
4ca711f5aa
commit
5b9862c19c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user