Fix contact deletion

This commit is contained in:
Artur Beljajev 2019-06-21 18:04:00 +03:00
parent 7c768616a2
commit 67985ff1e9

View file

@ -12,6 +12,7 @@ class Contact < ActiveRecord::Base
has_many :domains, through: :domain_contacts
has_many :legal_documents, as: :documentable
has_many :registrant_domains, class_name: 'Domain', foreign_key: 'registrant_id'
has_many :actions, dependent: :destroy
has_paper_trail class_name: "ContactVersion", meta: { children: :children_log }