Unique index on Invite::$code.

This commit is contained in:
Alexey Skobkin 2018-06-27 01:40:43 +03:00
parent b35da23e8e
commit 0dd74177e3

View file

@ -30,7 +30,7 @@ class Invite
/**
* @var string
*
* @ORM\Column(name="code", type="string", length=32)
* @ORM\Column(name="code", type="string", length=32, unique=true)
*/
private $code;