Fixed #22356 -- Added a check to make sure unique_together fields are local.