Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add uniqueness validation for token string
On the database level we already ensure the uniqueness of the token string through an uniq index. In order to properly test this in the model specs and to have better exception handling, the validation should also be present in the token model.
- Loading branch information