summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-11-16 18:03:21 +0000
committerMichael Kozono <mkozono@gmail.com>2017-11-16 18:03:21 +0000
commit8922b7b781f241d9afd77f15fad0cfcab14d5205 (patch)
treebf7e4abf1c3a8c1e230a233d82a99d358a0ae6aa
parent3d16f7cd57a5332936d912a46a4ec73e730a825e (diff)
downloadgitlab-ce-8922b7b781f241d9afd77f15fad0cfcab14d5205.tar.gz
Update database_debugging.md
-rw-r--r--doc/development/database_debugging.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/development/database_debugging.md b/doc/development/database_debugging.md
index 4acfbef3020..e1c785d85fa 100644
--- a/doc/development/database_debugging.md
+++ b/doc/development/database_debugging.md
@@ -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