mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
11 lines
302 B
Ruby
11 lines
302 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
|
|
|
|
puts "Archived total: #{archived_contacts.count}"
|
|
end
|
|
end
|