More accurate steps for preparing the database

The existing prepare database instructions were not correct. I have updated them according to what existed in the other document (docs/DEVELOPMENT-ADVANCED.md).
This commit is contained in:
Panayotis Matsinopoulos 2017-10-18 13:23:35 +01:00 committed by GitHub
parent f50d447881
commit 74b4d36a9c
1 changed files with 7 additions and 4 deletions

View File

@ -257,10 +257,13 @@ bundle install
### Prepare your database
```sh
rake db:create
rake db:migrate
rake db:test:prepare
rake db:seed_fu
# run this if there was a pre-existing database
bundle exec rake db:drop
RAILS_ENV=test bundle exec rake db:drop
# time to create the database and run migrations
bundle exec rake db:create db:migrate
RAILS_ENV=test bundle exec rake db:create db:migrate
```
## Now, test it out!