Skip to content

Instantly share code, notes, and snippets.

@acook
Created April 9, 2013 21:56
Show Gist options
  • Save acook/5349778 to your computer and use it in GitHub Desktop.
Save acook/5349778 to your computer and use it in GitHub Desktop.
`rake db:reset` will call `db:seed` without calling `db:migrate` first, this gets around that.
#!/usr/bin/env bash
# If running `rake db:reset` or `rake db:seed` fails, try this:
rake db:drop db:create db:schema:load db:migrate db:seed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment