Skip to content

Commit

Permalink
Typo: Changes name to username (#13504)
Browse files Browse the repository at this point in the history
Co-authored-by: Sascha Depold <sdepold@users.noreply.github.com>
  • Loading branch information
shreyshreyansh and sdepold committed Oct 3, 2021
1 parent 0726ede commit 23aa67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/manual/core-concepts/validations-and-constraints.md
Expand Up @@ -46,7 +46,7 @@ Our code example above defines a unique constraint on the `username` field:
} /* ... */
```

When this model is synchronized (by calling `sequelize.sync` for example), the `username` field will be created in the table as `` `name` TEXT UNIQUE``, and an attempt to insert an username that already exists there will throw a `SequelizeUniqueConstraintError`.
When this model is synchronized (by calling `sequelize.sync` for example), the `username` field will be created in the table as `` `username` TEXT UNIQUE``, and an attempt to insert an username that already exists there will throw a `SequelizeUniqueConstraintError`.

## Allowing/disallowing null values

Expand Down

0 comments on commit 23aa67e

Please sign in to comment.