Update phoenix-migrations.md
This commit is contained in:
parent
090d42f103
commit
7957c3bee4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue