I'm following the tutorial here: http://docs.sequelizejs.com/manual/tutorial/migrations.html#creating-first-model-and-migration-
But when I do:
node_modules/.bin/sequelize db:seed:all
it gives to me:
ERROR: null value in column "createdAt" violates not-null constraint
I tested in a new npm init
project with a new Postgres DB 10.4.
Dialect: postgres
Dialect version: "pg": "7.4.3",
Database version: 10.4
Sequelize version: "sequelize": "4.38.0"
Maybe this is a way to go? http://mmiyauchi.com/?p=2057