diff options
author | BoHong Li | 2017-03-08 18:45:51 +0800 |
---|---|---|
committer | BoHong Li | 2017-03-08 18:45:51 +0800 |
commit | 4889e9732d2458d60e2a079d3e54e128f6ce1b53 (patch) | |
tree | 7c867068ca17d7545ebbe10910d95abe3d19f1f9 /lib/migrations/20161009040430-support-delete-note.js | |
parent | 8f1c97f4a476ff6534ff1e809ed748cf92ba9288 (diff) |
Use JavaScript Standard Style
Introduce JavaScript Standard Style as project style rule,
and fixed all fail on backend code.
Diffstat (limited to 'lib/migrations/20161009040430-support-delete-note.js')
-rw-r--r-- | lib/migrations/20161009040430-support-delete-note.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/migrations/20161009040430-support-delete-note.js b/lib/migrations/20161009040430-support-delete-note.js index 92ff6f7b..984920b8 100644 --- a/lib/migrations/20161009040430-support-delete-note.js +++ b/lib/migrations/20161009040430-support-delete-note.js @@ -1,11 +1,9 @@ -'use strict'; - module.exports = { up: function (queryInterface, Sequelize) { - queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE); + queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE) }, down: function (queryInterface, Sequelize) { - queryInterface.removeColumn('Notes', 'deletedAt'); + queryInterface.removeColumn('Notes', 'deletedAt') } -}; +} |