diff options
Diffstat (limited to 'lib/migrations/20160420180355-note-add-alias.js')
-rw-r--r-- | lib/migrations/20160420180355-note-add-alias.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/migrations/20160420180355-note-add-alias.js b/lib/migrations/20160420180355-note-add-alias.js new file mode 100644 index 00000000..2c3e453b --- /dev/null +++ b/lib/migrations/20160420180355-note-add-alias.js @@ -0,0 +1,13 @@ +'use strict' +module.exports = { + up: function (queryInterface, Sequelize) { + return queryInterface.addColumn('Notes', 'alias', { + type: Sequelize.STRING, + unique: true + }) + }, + + down: function (queryInterface, Sequelize) { + return queryInterface.removeColumn('Notes', 'alias') + } +} |