From 6c8eeb2fbc7ce04b470bf2884499f681644f4372 Mon Sep 17 00:00:00 2001 From: Jerrica Bobadilla Date: Thu, 8 Oct 2020 12:01:56 -0700 Subject: [PATCH] add note about migrations --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 38deccb..9a0dbb5 100644 --- a/README.md +++ b/README.md @@ -95,4 +95,12 @@ To build your app, we're going to be building a virtual environment. In order to --- +## Making Changes +### Updating / Creating Models + +1. If you make any changes to the `contacts/models.py` file, you will need to make and run a migration to apply the changes. You can do so by using the following commands while _inside the pipenv shell_ + 1. Make the migration: `python3 manage.py makemigrations` + 1. Apply the migration: `python3 manage.py migrate` + +---