Recently, in V4, Sequelize has a method addConstraint
on the query interface:
queryInterface.addConstraint('Items', {
fields: ['minor', 'major'],
type: 'unique',
name: 'custom_unique_constraint_name'
});
Recently, in V4, Sequelize has a method addConstraint
on the query interface:
queryInterface.addConstraint('Items', {
fields: ['minor', 'major'],
type: 'unique',
name: 'custom_unique_constraint_name'
});