scinote-web/lib/tasks/clear_discarded_repositories.rake

6 lines
177 B
Ruby

namespace :clear_discarded_repositories do
desc 'Removes all discarded repositories'
task run: :environment do
Repository.with_discarded.discarded.destroy_all
end
end