[Fix #1096] task to delete old accounts
This commit is contained in:
parent
4990595430
commit
5c9d82d46f
1 changed files with 8 additions and 0 deletions
8
lib/tasks/2017_12_20_delete_old_administration.rake
Normal file
8
lib/tasks/2017_12_20_delete_old_administration.rake
Normal file
|
@ -0,0 +1,8 @@
|
|||
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
|
Loading…
Reference in a new issue