1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-25 10:18:07 +02:00

add instructions for database

Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
This commit is contained in:
Lukas Pol 2020-04-15 15:03:10 -03:00
parent 3702cfee50
commit ac20b6471d

View file

@ -59,7 +59,22 @@ $ docker-compose exec web bash
root@dac525a7e7f9:/myapp#
```
## Create and migrate database
## Scripts to database
**create database:**
```
rake db:create
```
**migrations database:**
```
rake db:migrate
```
**drop database:**
```
rake db:drop
```
```
root@dac525a7e7f9:/myapp# rake db:create db:migrate