From 4f96fd65a7d995be281c478e10627f9645b79672 Mon Sep 17 00:00:00 2001 From: rachidatecs Date: Wed, 17 May 2023 20:49:58 -0400 Subject: [PATCH] Add context for migrations documentation --- docs/developer/database-access.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/developer/database-access.md b/docs/developer/database-access.md index 8c0fc612e..7c7d28881 100644 --- a/docs/developer/database-access.md +++ b/docs/developer/database-access.md @@ -12,6 +12,9 @@ to get a `psql` shell on the sandbox environment's database. ## Running Migrations +When new code changes the database schema (ie, you change a model or pull some +code that has), we need to apply Django's migrations. + ### On Local ```shell @@ -23,7 +26,6 @@ The docker compose down then up to run the new migrations. ### On Cloud.gov -When new code changes the database schema, we need to apply Django's migrations. We can run these using CloudFoundry's tasks to run the `manage.py migrate` command in the correct environment. For any developer environment, developers can manually run the task with