mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
10 lines
268 B
Ruby
10 lines
268 B
Ruby
namespace :contacts do
|
|
desc 'Archives inactive contacts'
|
|
|
|
task archive: :environment do
|
|
inactive_contacts = InactiveContacts.new
|
|
archived_contacts = inactive_contacts.archive(verified: true)
|
|
|
|
puts "Archived total: #{archived_contacts.count}"
|
|
end
|
|
end
|