Skip to content

Commit

Permalink
docs(naming-strategies): fix user model name user (#12576)
Browse files Browse the repository at this point in the history
  • Loading branch information
cahyonobagus authored and papb committed Aug 1, 2020
1 parent b0e6f03 commit 45ec1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/manual/other-topics/naming-strategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Sequelize provides the `underscored` option for a model. When `true`, this option will set the `field` option on all attributes to the [snake_case](https://en.wikipedia.org/wiki/Snake_case) version of its name. This also applies to foreign keys automatically generated by associations and other automatically generated fields. Example:

```js
const User = sequelize.define('task', { username: Sequelize.STRING }, {
const User = sequelize.define('user', { username: Sequelize.STRING }, {
underscored: true
});
const Task = sequelize.define('task', { title: Sequelize.STRING }, {
Expand Down

0 comments on commit 45ec1a2

Please sign in to comment.