I am trying to leverage models from sequelize to do the migration
Conventionally I would do something like
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.bulkInsert('users', [{
firstName: 'John',
lastName: 'Doe',
eyeColor: 'green'
}], {});
},
down: function (queryInterface, Sequelize) {
/*
Add reverting commands here.
Example:
return queryInterface.bulkDelete('users', null, {});
*/
}
};
I receive an error Unhandled rejection SequelizeDatabaseError: relation "users" does not exist
Is it because the models are not being utilized by the migrations.js?
I am trying to leverage models from sequelize to do the migration
Conventionally I would do something like
I receive an error
Unhandled rejection SequelizeDatabaseError: relation "users" does not existIs it because the models are not being utilized by the migrations.js?