RS, DG; DB purge now deletes tmp folder
This commit is contained in:
parent
b645eb3f3d
commit
cd875d06db
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ namespace :db do
|
||||||
# Specifiy what models to remove
|
# Specifiy what models to remove
|
||||||
# No! Drop the fucking database.
|
# No! Drop the fucking database.
|
||||||
MongoMapper::connection.drop_database(MongoMapper::database.name)
|
MongoMapper::connection.drop_database(MongoMapper::database.name)
|
||||||
|
|
||||||
|
puts 'Deleting tmp folder...'
|
||||||
|
`rm -rf #{File.dirname(__FILE__)}/../../public/uploads/tmp`
|
||||||
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