drop the database on purge

This commit is contained in:
Raphael 2010-08-02 18:08:07 -07:00
parent 6b1f020839
commit 848acff02a

View file

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