demarches-normaliennes/lib/tasks/2017_12_20_delete_old_administration.rake

9 lines
183 B
Ruby
Raw Normal View History

namespace :'2017_12_20_delete_old_administration' do
task set: :environment do
Administration.all.each do |a|
puts "Deleting #{a.email}"
a.destroy
end
end
end