Skip to content

Instantly share code, notes, and snippets.

@halloffame
Last active December 16, 2015 00:49
Show Gist options
  • Save halloffame/5350542 to your computer and use it in GitHub Desktop.
Save halloffame/5350542 to your computer and use it in GitHub Desktop.
One line script for destroying and rebuilding Rails database.
bundle exec rake db:reset db:migrate db:test:prepare db:seed
# This will reset your database and reload your current schema.
### OR ###
bundle exec rake db:drop db:create db:migrate db:test:prepare db:seed
# This will destroy your db, recreate it, and then migrate your current schema.
@adamcrown
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment