mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 05:01:14 +08:00
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:

committed by
GitHub

parent
f50d447881
commit
74b4d36a9c
@ -257,10 +257,13 @@ bundle install
|
|||||||
|
|
||||||
### Prepare your database
|
### Prepare your database
|
||||||
```sh
|
```sh
|
||||||
rake db:create
|
# run this if there was a pre-existing database
|
||||||
rake db:migrate
|
bundle exec rake db:drop
|
||||||
rake db:test:prepare
|
RAILS_ENV=test bundle exec rake db:drop
|
||||||
rake db:seed_fu
|
|
||||||
|
# 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!
|
## Now, test it out!
|
||||||
|
Reference in New Issue
Block a user