I am doing some clean up on an old project. The project has been upgraded to Django 1.8. The project has several apps that are no longer needed at all. I'd like to remove these apps.
The problem is that you can't remove an app with migrations because other apps' migrations might depend on them. For instance...app car
can be removed, but a model in app user
has a foreign key to a model in car
. If I remove the car
app then I will get errors when the full migrations run. A migration in user
depends on a migration in car
(the migration that creates the Car model) and it will fail.
I can go back and edit the user
migrations to remove all instances of car
, acting as if it never existed. But then I can't have a migration that removes the car
property on User
, so that column will just remain in the database table (even though it is no longer used).
How am I supposed to remove this app without borking my migrations and leaving old columns laying around?