Hello my model looks like this
'use strict';
module.exports = function(sequelize, DataTypes) {
var clinicians = sequelize.define('clinicians', {
/* field list */
}, {
createdAt: "created_at",
updatedAt: 'updated_at',
deletedAt: false,
underscored: true,
classMethods: {
associate: function(models) {
// associations can be defined here
}
}
});
clinicians.options.underscored = true;
return clinicians;
};
and i get this error
Unhandled rejection SequelizeBaseError: ER_BAD_FIELD_ERROR: Unknown column 'created_at' in 'field list'
via Travis Delly
No comments:
Post a Comment