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:
parent
3702cfee50
commit
ac20b6471d
1 changed files with 16 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue