Skip to content

Commit

Permalink
Contact destroy dependent validation event
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoyoussef committed May 11, 2022
1 parent a5e49c9 commit 2803c73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Contact < ApplicationRecord
has_many :domain_contacts
has_many :domains, through: :domain_contacts
has_many :legal_documents, as: :documentable
has_many :validation_events, as: :validation_eventable
has_many :validation_events, as: :validation_eventable, dependent: :destroy
has_many :registrant_domains, class_name: 'Domain', foreign_key: 'registrant_id'
has_many :actions, dependent: :destroy

Expand Down

0 comments on commit 2803c73

Please sign in to comment.