mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
Fix tests
This commit is contained in:
parent
e159821a86
commit
944aba563c
4 changed files with 31 additions and 22 deletions
|
@ -1,6 +1,5 @@
|
|||
desc 'Check Force Delete'
|
||||
task :check_force_delete do
|
||||
|
||||
task :check_force_delete, :environment do
|
||||
invalid_contacts = Contact.joins(:validation_events).select do |contact|
|
||||
events = contact.validation_events
|
||||
events.mx.count >= 3 || events.regex.present?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue