a lot of stuff added
This commit is contained in:
parent
37f548ce46
commit
7967e6d5c8
35 changed files with 559 additions and 64 deletions
10
lib/tasks/clear_db.rake
Normal file
10
lib/tasks/clear_db.rake
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue