diff --git a/awx/main/migrations/0038_v320_release.py b/awx/main/migrations/0038_v320_release.py index ec8c0e4a8e..f0006d3f33 100644 --- a/awx/main/migrations/0038_v320_release.py +++ b/awx/main/migrations/0038_v320_release.py @@ -243,8 +243,4 @@ class Migration(migrations.Migration): name='insights_system_id', field=models.TextField(default=None, help_text='Red Hat Insights host unique identifier.', null=True, db_index=True, blank=True), ), - migrations.AlterUniqueTogether( - name='host', - unique_together=set([('insights_system_id', 'inventory'), ('name', 'inventory')]), - ), ] diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 3326fc44b4..4b4f867a44 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -353,7 +353,7 @@ class Host(CommonModelNameNotUnique): class Meta: app_label = 'main' - unique_together = (("name", "inventory"), ("insights_system_id", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration. + unique_together = (("name", "inventory"),) # FIXME: Add ('instance_id', 'inventory') after migration. ordering = ('name',) inventory = models.ForeignKey(