mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Add nonverified color email to registrar index
This commit is contained in:
parent
af7e0f266d
commit
e95996fa12
7 changed files with 29 additions and 5 deletions
|
@ -4,12 +4,11 @@ class FillEmailVerifications < ActiveRecord::Migration[6.0]
|
|||
registrar_emails = Registrar.pluck(:email).uniq.reject(&:blank?)
|
||||
contact_emails = Contact.pluck(:email).uniq.reject(&:blank?)
|
||||
|
||||
emails = (contact_emails || registrar_emails || registrar_billing_emails).uniq
|
||||
emails = (contact_emails + registrar_emails + registrar_billing_emails).uniq
|
||||
|
||||
result = emails.map do |email|
|
||||
{ email: email, domain: domain(email) }
|
||||
end
|
||||
|
||||
EmailAddressVerification.import result, batch_size: 500
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue