diff options
author | Wu Cheng-Han | 2016-10-10 21:04:24 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-10 21:04:24 +0800 |
commit | 12d5ed43a7376e0ca361160698f07066218d6ed2 (patch) | |
tree | 697572ef13990565e5a44a66615540a40ef5def7 /lib/models | |
parent | 68457ed3a26012e9e72e7ca95bfd7b9c101cdd8b (diff) |
Update to support delete note
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/note.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/models/note.js b/lib/models/note.js index 08ef083d..6efa5d4f 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -67,6 +67,7 @@ module.exports = function (sequelize, DataTypes) { type: DataTypes.DATE } }, { + paranoid: true, classMethods: { associate: function (models) { Note.belongsTo(models.User, { |