diff --git a/docs/manual/core-concepts/validations-and-constraints.md b/docs/manual/core-concepts/validations-and-constraints.md index cdc4139c9640..0ce8668f6a8f 100644 --- a/docs/manual/core-concepts/validations-and-constraints.md +++ b/docs/manual/core-concepts/validations-and-constraints.md @@ -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