不要怂,就是干,撸起袖子干!

Commit ba4eda22 by Ryan Lane

Merge pull request #1 from ryanalane/spelling-fix-associations_md

Corrected spelling from "rayther" to "rather"
2 parents bd0bc00b f7f8dad6
Showing with 1 additions and 1 deletions
......@@ -43,7 +43,7 @@ In cases wherè `as` has been defined it will be used in place of the target mod
var User = this.sequelize.define('User', {/* attributes */})
, UserRole = this.sequelize.define('UserRole', {/* attributes */});
User.belongsTo(UserRole, {as: 'Role'}); // Adds RoleId to user ratyer than UserRoleId
User.belongsTo(UserRole, {as: 'Role'}); // Adds RoleId to user rather than UserRoleId
```
In all cases the default foreign key can be overwritten with the `foreignKey` option.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!