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

Commit 18b0538f by Jan Aagaard Meier

Fix example in references: string

1 parent b75a6c29
Showing with 2 additions and 3 deletions
...@@ -428,7 +428,7 @@ Series = sequelize.define('Series', { ...@@ -428,7 +428,7 @@ Series = sequelize.define('Series', {
// Set FK relationship (hasMany) with `Trainer` // Set FK relationship (hasMany) with `Trainer`
trainer_id: { trainer_id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
references: "Trainer", references: "Trainers",
referencesKey: "id" referencesKey: "id"
} }
}) })
...@@ -458,4 +458,4 @@ Trainer.hasMany(Series); ...@@ -458,4 +458,4 @@ Trainer.hasMany(Series);
[0]: https://www.npmjs.org/package/inflection [0]: https://www.npmjs.org/package/inflection
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!