Clean-up

Detect “forgotten” tables

Forgotten or ghost tables are tables which were created by Django migrations but then removed in the code. Django will not necessarily remove tables when deleting models. Adam Johnson wrote a neat snippet to detect such tables.

This package provides a management command to neatly list those tables in the command-line.

python ./manage.py detect_ghost_tables

> The following tables might be left-overs and can be deleted:
> * invalid_table