Eliminé dos modelos de models.py, y cuando ejecuto makemigrations y migro localmente, todo está bien. Cuando ejecuto makemigrations en Heroku, recibo el siguiente mensaje, donde Building y BuildingInstance son los modelos que eliminé:
Migrations for 'hello': 0002_building_buildinginstance.py: - Create model Building - Create model BuildingInstanceCuando ejecuto la migración, obtengo:
Running migrations: No migrations to apply. Your models have changes that are not yet reflected in a migration, and so won't be applied. Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.Seguí los pasos aquí y también intenté aplastar las migraciones localmente y en Heroku como se sugiere aquí . ¿Como puedo solucionar este problema?
Como he escrito muchas veces aquí, no debe ejecutar makemigrations en Heroku. Ejecútelo localmente, confirme el resultado y luego ejecute la migración en Heroku.