purpose of migration folder in django code example
Example: purpose of migration folder in django
migrations in django
Migration is a way of applying changes that we have made to a model, into the database schema.
Django creates a migration file inside the migration folder for each model to create the table schema,
and each table is mapped to the model of which migration is created.
makemigrations : It is used to create a migration file that contains code for the tabled schema of a model.
migrate : It creates table according to the schema defined in the migration file.
Migration files are the history of your database.