This commit is contained in:
olegphenomenon 2021-11-30 11:41:12 +02:00
parent 95f4e7858b
commit 28c58826e0
5 changed files with 32 additions and 22 deletions

View file

@ -71,5 +71,14 @@ class ValidationEvent < ApplicationRecord
end
def lift_force_delete
# domain_contacts = Contact.where(email: email).map(&:domain_contacts).flatten
# registrant_ids = Registrant.where(email: email).pluck(:id)
#
# domains = domain_contacts.map(&:domain).flatten +
# Domain.where(registrant_id: registrant_ids)
#
# domains.each do |domain|
# Domains::ForceDeleteLift::Base.run(domain: domain)
# end
end
end