mailr/lib/tasks/clear_db.rake
Wojciech Todryk 68b925ea5e new stuff
2011-08-02 23:12:17 +02:00

11 lines
238 B
Ruby
Executable file

namespace :db do
desc "Clears all data in db"
task :clear_data => :environment do
users = User.all
puts "Number of users in db: #{users.size}"
puts "Deleting data....."
User.destroy_all
puts "Done"
end
end