Application primary URL does not have a unique constraint. applications.primary_url should be unique.