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

11 lines
244 B
Ruby
Raw Normal View History

require Rails.root.join("lib", "tasks", "task_helper")
namespace :'2017_12_20_delete_old_administration' do
task set: :environment do
Administration.all.each do |a|
rake_puts "Deleting #{a.email}"
a.destroy
end
end
end