mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 20:19:05 +08:00
6 lines
177 B
Ruby
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
|