Skip to content

Instantly share code, notes, and snippets.

@johnbellone
Created October 13, 2010 03:19
Show Gist options
  • Save johnbellone/623366 to your computer and use it in GitHub Desktop.
Save johnbellone/623366 to your computer and use it in GitHub Desktop.
A simple rake script to bounce a database.
namespace :db do
desc "Reset and migrate the current database"
task :bounce => :environment do
Rake::Task['db:reset'].invoke
Rake::Task['db:migrate'].invoke
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment