Update to support delete note
This commit is contained in:
11
lib/migrations/20161009040430-support-delete-note.js
Normal file
11
lib/migrations/20161009040430-support-delete-note.js
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE);
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
queryInterface.removeColumn('Notes', 'deletedAt', Sequelize.DATE);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user