Colubrina/backend/migrations/20220518100447-friendsStatu...

21 lines
444 B
JavaScript

"use strict"
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn("friends", "status", {
type: Sequelize.ENUM(["pending", "accepted", "declined"]),
allowNull: false,
defaultValue: "pending"
})
},
down: async (queryInterface, Sequelize) => {
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
}
}