From 8230e790138d99ae68d657c4981f77a6a6f90907 Mon Sep 17 00:00:00 2001 From: chenga Date: Sun, 25 Feb 2024 15:30:50 +0200 Subject: [PATCH] Docs - create migration file for existing model --- docs/website/docs/01_the-app/02_models.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/website/docs/01_the-app/02_models.md b/docs/website/docs/01_the-app/02_models.md index 7b41bdc..9d0acf3 100644 --- a/docs/website/docs/01_the-app/02_models.md +++ b/docs/website/docs/01_the-app/02_models.md @@ -63,6 +63,12 @@ Migrations exist in `config/db/migrate` and you run them like so: $ bin/hyperstack migrate ``` +For generating a new migration file for modifying an existing model you can run: +``` +bin/hyperstack g migration migration_name +``` +This will create a new empty migration file for you to fill in the changes to your models. + ## Configuration Model configuration that's available to you is exciting because it controls all aspects of development, testing, and production, with a ton of goodies, coming from production experience.