[1.7.x] Fixed #23859 -- Fixed a migration crash when a field is renamed that is part of an index_together

Backport of 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6 from master.