Created
August 4, 2018 03:49
-
-
Save 3014zhangshuo/7ee263ef236d9870c8ac532b1c5c66af to your computer and use it in GitHub Desktop.
rails reset test env database
This file contains hidden or 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:drop RAILS_ENV=test | |
bundle exec rake db:create RAILS_ENV=test | |
bundle exec rake db:schema:load RAILS_ENV=test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment