From 7957c3bee48d59a2038c8f6d5f1badd12da302f6 Mon Sep 17 00:00:00 2001 From: Saul Mestanza Date: Thu, 15 Aug 2019 16:19:56 -0500 Subject: [PATCH] Update phoenix-migrations.md --- phoenix-migrations.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phoenix-migrations.md b/phoenix-migrations.md index f87d12e50..2c5475d01 100644 --- a/phoenix-migrations.md +++ b/phoenix-migrations.md @@ -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+. +### Creating context + +```bash +$ mix phx.gen.context Images Album albums title:string subtitle:string privacy:string +``` + ## Migration functions ### Creating tables