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