﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29588	unique_together constraint not inherited from abstract model in migration file	Ronny Vedrilla	nobody	"I added a `unique_together` constraint on my abstract model like this:


{{{
class InvoicingDocument(models.Model):
       field1 = models.IntegerField()
       field2 = models.IntegerField()
       class Meta:
           abstract = True
           unique_together = (('field1', 'field2'),)

class Invoice(InvoicingDocument):
       pass
}}}


When I run `manage.py makemigrations` the migration file does not contain any information about adding the index to the model `Invoice`.

When I add it to the child-class, it works.

I guess this is an issue with `django-migrations`?

Best regards
Ronny"	Bug	closed	Migrations	2.0	Normal	worksforme			Unreviewed	0	0	0	0	0	0
