Destroy favorites when a party is deleted
This commit is contained in:
parent
4d7ee4b311
commit
6db130d08b
1 changed files with 2 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ class Party < ApplicationRecord
|
|||
dependent: :destroy,
|
||||
inverse_of: :party
|
||||
|
||||
has_many :favorites
|
||||
has_many :favorites, dependent: :destroy
|
||||
|
||||
before_create :set_shortcode
|
||||
before_create :set_edit_key
|
||||
|
|
|
|||
Loading…
Reference in a new issue