Adding unique index on team slug.
A validation at the model level might not be enough to prevent duplicate records in the db. Adding unique index fixes this case.
Merge pull request #1155 from Tonkpils/fix-possible-race-condition

Adding unique index on team slug.