Last active
December 16, 2015 00:49
-
-
Save halloffame/5350542 to your computer and use it in GitHub Desktop.
One line script for destroying and rebuilding Rails database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/4116067/purge-or-recreate-a-ruby-on-rails-database