Skip to content

Commit

Permalink
add visibility migration
Browse files Browse the repository at this point in the history
  • Loading branch information
SWSoftware1044 committed Dec 10, 2019
1 parent 318096d commit bd5845a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions migrations/20191210180250-add-visibility-to-rooms.js
@@ -0,0 +1,16 @@
'use strict';

module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('Rooms', 'visibility', {
type: Sequelize.STRING,
defaultValue: 'public',
allowNull: false,
});
},

// eslint-disable-next-line no-unused-vars
down: (queryInterface, Sequelize) => {
return queryInterface.removeColumn('Rooms', 'visibility');
},
};

0 comments on commit bd5845a

Please sign in to comment.