Skip to content

Commit

Permalink
Merge pull request #523 from codeforjapan/develop-db-reset
Browse files Browse the repository at this point in the history
docs: db:reset when db:seed failed
  • Loading branch information
ayuki-joto authored Apr 10, 2023
2 parents cc25d99 + 9b0d74d commit d04fbe8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ docker-compose run --rm app ./bin/rails db:create db:migrate
docker-compose run --rm app ./bin/rails db:seed
```

`db:seed`でエラーが起きた場合、ダミーのデータ作成に失敗している可能性があります。以下を実行し、DBを再作成してみてください。

```
docker-compose run --rm app ./bin/rails db:reset
```

### 3.5 サーバー起動
```
docker-compose up -d
Expand Down

0 comments on commit d04fbe8

Please sign in to comment.