Skip to content

Instantly share code, notes, and snippets.

@sephii
Last active June 7, 2016 15:30
Show Gist options
  • Save sephii/43ad0a1f0adbdbf8167685716e3009a7 to your computer and use it in GitHub Desktop.
Save sephii/43ad0a1f0adbdbf8167685716e3009a7 to your computer and use it in GitHub Desktop.
Django: make tests fail if you forgot to generate migrations
#!/bin/sh
./manage.py makemigrations --dry-run -e --no-input -v1 && echo "Missing migrations detected!" && exit 1; exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment