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

Commit d053faf9 by Luc Verdier

Update associations.md

1 parent e8325e60
Showing with 1 additions and 1 deletions
......@@ -175,7 +175,7 @@ To add a new project to a user and set it's status, you pass an extra object to
user.addProject(project, { status: 'started' })
```
By default the code above will add ProjectId and UserId to the UserProjects table, and_remove any previsouly defined primary key attribute _- the table will be uniquely identified by the combination of the keys of the two tables, and there is no reason to have other PK columns. To enforce a primary key on the `UserProjects` model you can add it manually.
By default the code above will add ProjectId and UserId to the UserProjects table, and _remove any previsouly defined primary key attribute_ - the table will be uniquely identified by the combination of the keys of the two tables, and there is no reason to have other PK columns. To enforce a primary key on the `UserProjects` model you can add it manually.
```js
UserProjects = sequelize.define('UserProjects', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!