Update database_debugging.md

This commit is contained in:
Michael Kozono 2017-11-16 18:03:21 +00:00
parent 3d16f7cd57
commit 8922b7b781
1 changed files with 3 additions and 4 deletions

View File

@ -9,7 +9,6 @@ An easy first step is to search for your error in Slack or google "GitLab <my er
Available `RAILS_ENV`
- `production` (not sure if in GDK)
- `development` (this is your main GDK db)
- `test` (used for tests like rspec and spinach)
@ -18,9 +17,9 @@ Available `RAILS_ENV`
If you just want to delete everything and start over,
- `bundle exec rake db:drop RAILS_ENV=development`
- `bundle exec rake db:setup RAILS_ENV=development`
- `bundle exec rake dev:setup RAILS_ENV=development` : Also runs DB specific stuff and seeds dummy data (slow)
- `bundle exec rake db:reset RAILS_ENV=development` : Doesn't do the above (fast)
- `bundle exec rake db:reset RAILS_ENV=test` : Fix the test DB, since it doesn't contain important data.
## Migration wrangling