diff --git a/server/migrations/20191210212618-remove_username.js b/server/migrations/20191210212618-remove_username.js new file mode 100644 index 00000000..5f5928f6 --- /dev/null +++ b/server/migrations/20191210212618-remove_username.js @@ -0,0 +1,17 @@ +'use strict'; + +module.exports = { + up: (queryInterface, Sequelize) => { + return queryInterface.removeColumn('users', 'username') + }, + + down: (queryInterface, Sequelize) => { + /* + Add reverting commands here. + Return a promise to correctly handle asynchronicity. + + Example: + return queryInterface.dropTable('users'); + */ + } +};