RS, DG; DB purge now deletes tmp folder

This commit is contained in:
Raphael 2010-08-10 11:13:37 -07:00
parent b645eb3f3d
commit cd875d06db

View file

@ -27,6 +27,9 @@ namespace :db do
# Specifiy what models to remove
# No! Drop the fucking database.
MongoMapper::connection.drop_database(MongoMapper::database.name)
puts 'Deleting tmp folder...'
`rm -rf #{File.dirname(__FILE__)}/../../public/uploads/tmp`
end
desc 'Purge and seed the current RAILS_ENV database using information from db/seeds.rb'