Skip to content

Instantly share code, notes, and snippets.

@kdisneur
Created August 29, 2012 16:02
Show Gist options
  • Save kdisneur/3514873 to your computer and use it in GitHub Desktop.
Save kdisneur/3514873 to your computer and use it in GitHub Desktop.
Recreate database
#! /bin/sh
env=${1:-test}
for action in drop create migrate; do
RAILS_ENV=$env rake db:$action;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment