Skip to content

Instantly share code, notes, and snippets.

@3014zhangshuo
Created August 4, 2018 03:49
Show Gist options
  • Save 3014zhangshuo/7ee263ef236d9870c8ac532b1c5c66af to your computer and use it in GitHub Desktop.
Save 3014zhangshuo/7ee263ef236d9870c8ac532b1c5c66af to your computer and use it in GitHub Desktop.
rails reset test env database
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