Skip to content

Instantly share code, notes, and snippets.

@mjhea0
Created September 5, 2014 15:52
Show Gist options
  • Save mjhea0/c58be806c6628aa64f73 to your computer and use it in GitHub Desktop.
Save mjhea0/c58be806c6628aa64f73 to your computer and use it in GitHub Desktop.
  1. generate an empty migration
  2. move the migration from old_app to new_app
  3. edit the migration file to change all instances of old_app to new_app
  4. add a forward migration to rename the table from something to something_else
  5. add a backward migration to do the opposite
  6. move models.py from old_app to new_app
  7. apply the migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment