sequelize / express-example

A proposal for the usage of Sequelize within an Express.JS application.
MIT License
2.5k stars 770 forks source link

Task migration missing UserId foreign key #51

Closed dgobaud closed 7 years ago

dgobaud commented 7 years ago

The task model has a Task.belongsTo(models.User, ...) but this isn't in the migration

sushantdhiman commented 7 years ago

Fixed in https://github.com/sequelize/express-example/pull/54 , I realized lots of things were missing in migration like timestamps, so it wasn't possible to run project after ./node_modules/.bin/sequelize db:migrate , its fixed as well