@@ -28,6 +28,17 @@ db_namespace = namespace :db do
ActiveRecord::Tasks::DatabaseTasks.drop_current
end
namespace:purgedo
task:all=>:load_configdo
ActiveRecord::Tasks::DatabaseTasks.purge_all
end
end
# desc "Empty the database from DATABASE_URL or config/database.yml for the current RAILS_ENV (use db:drop:all to drop all databases in the config). Without RAILS_ENV it defaults to purging the development and test databases."
task:purge=>[:load_config]do
ActiveRecord::Tasks::DatabaseTasks.purge_current
end
desc"Migrate the database (options: VERSION=x, VERBOSE=false, SCOPE=blog)."