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}..."
|
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'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue