a lot of stuff added

This commit is contained in:
Wojciech Todryk 2011-07-29 20:05:47 +02:00
parent 37f548ce46
commit 7967e6d5c8
35 changed files with 559 additions and 64 deletions

10
lib/tasks/clear_db.rake Normal file
View file

@ -0,0 +1,10 @@
namespace :db do
desc "Clears all date 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