              with self.assertRaises(DatabaseError):
                  editor.add_constraint(Author, constraint)
  
      def test_index_together(self):
          """
          Tests removing and adding index_together constraints on a model.
          """
          # Create the table
          with connection.schema_editor() as editor:
 
</s> remove                 index_together = ["bio", "age"]
 </s> add                 index_together = ["bio", "age"]  # RemovedInDjango51Warning.
    @ignore_warnings(category=RemovedInDjango51Warning)
              with self.assertRaises(DatabaseError):
                  editor.add_constraint(Author, constraint)
  
    @ignore_warnings(category=RemovedInDjango51Warning)
      def test_index_together(self):
          """
          Tests removing and adding index_together constraints on a model.
          """
          # Create the table
          with connection.schema_editor() as editor:
keep keep add keep keep keep keep keep keep
 Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes.

This also deprecates AlterIndexTogether migration operation. 
tests/schema/tests.py