[1.7.x] Fixed #22903 -- Fixed migration generation if index_together or unique_together is removed from a model.

Backport of e0cd07ec2f from master