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

Commit fc5675d5 by Westley Argentum Hennigh-Palermo Committed by Jan Aagaard Meier

projectId formatting (#5941)

1 parent 3d14a4a6
Showing with 1 additions and 1 deletions
......@@ -189,7 +189,7 @@ var Project = sequelize.define('project', {/* ... */})
Project.hasMany(User, {as: 'Workers'})
```
This will add the attribute projectId or `project_id` to User. Instances of Project will get the accessors getWorkers and setWorkers. We could just leave it the way it is and let it be a one-way association.
This will add the attribute `projectId` or `project_id` to User. Instances of Project will get the accessors getWorkers and setWorkers. We could just leave it the way it is and let it be a one-way association.
But we want more! Let's define it the other way around by creating a many to many association in the next section:
## Belongs-To-Many associations
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!