Update phoenix-migrations.md

This commit is contained in:
Saul Mestanza 2019-08-15 16:19:56 -05:00 committed by GitHub
parent 090d42f103
commit 7957c3bee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@ $ mix phoenix.gen.model Message messages user_id:integer content:text
This is only for Phoenix 1.2 or older; models aren't available in Phoenix 1.3+. This is only for Phoenix 1.2 or older; models aren't available in Phoenix 1.3+.
### Creating context
```bash
$ mix phx.gen.context Images Album albums title:string subtitle:string privacy:string
```
## Migration functions ## Migration functions
### Creating tables ### Creating tables