Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fc4a7716e1
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.502 kB
namespace :db do
namespace :redis do
task :reset => :environment do
Red.flushall
puts "-- Redis Reset"
end
end
namespace :mongo do
task :reset => :environment do
MongoMapper.connection.drop_database('schema4less')
puts "-- MongoDB Reset"
end
end
end
namespace :dbs do
desc 'Reset all databases (not just SQL)'
task :reset => ['db:reset', 'dbs:nosql:reset']
namespace :nosql do
task :reset => ['db:redis:reset','db:mongo:reset']
end
end
Jump to Line
Something went wrong with that request. Please try again.