Skip to content

Commit 447de94

Browse files
authored
Merge pull request #1176 from saulmestanza/patch-1
Update phoenix-migrations.md
2 parents 0c7e52a + 7957c3b commit 447de94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

phoenix-migrations.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ $ mix phoenix.gen.model Message messages user_id:integer content:text
2929

3030
This is only for Phoenix 1.2 or older; models aren't available in Phoenix 1.3+.
3131

32+
### Creating context
33+
34+
```bash
35+
$ mix phx.gen.context Images Album albums title:string subtitle:string privacy:string
36+
```
37+
3238
## Migration functions
3339

3440
### Creating tables

0 commit comments

Comments
 (0)