mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
11 lines
318 B
Ruby
11 lines
318 B
Ruby
namespace :contacts do
|
|
desc 'Archives inactive contacts'
|
|
|
|
task archive: :environment do
|
|
puts 'Starting to gather archivable contacts'
|
|
inactive_contacts = InactiveContacts.new
|
|
archived_contacts = inactive_contacts.archive(verified: true)
|
|
|
|
puts "Archived total: #{archived_contacts.count}"
|
|
end
|
|
end
|