diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index b0e7b033c1af7c6dd5fe42781f28da24afc27c7f..8c3bd23766a44742d398551e0ecc1bc15d524062 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -25,14 +25,8 @@ namespace :db do puts "Purging the database for #{Rails.env}..." # Specifiy what models to remove - Post.delete_all - Comment.delete_all - Person.delete_all - User.delete_all - Request.delete_all - Author.delete_all - OstatusPost.delete_all - Album.delete_all + # No! Drop the fucking database. + MongoMapper::connection.drop_database(MongoMapper::database.name) end desc 'Purge and seed the current RAILS_ENV database using information from db/seeds.rb'