drop the database on purge
This commit is contained in:
parent
6b1f020839
commit
848acff02a
1 changed files with 2 additions and 8 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue