This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To clear all DB entries and schema in a Django project backed with postgres/psql... | |
# -- OPTION 1: MANUAL –– | |
# Remove DB entries | |
python manage.py flush | |
# Remove all of the migration files | |
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete | |
find . -path "*/migrations/*.pyc" -delete |