summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-10 21:04:24 +0800
committerWu Cheng-Han2016-10-10 21:04:24 +0800
commit12d5ed43a7376e0ca361160698f07066218d6ed2 (patch)
tree697572ef13990565e5a44a66615540a40ef5def7 /lib/models
parent68457ed3a26012e9e72e7ca95bfd7b9c101cdd8b (diff)
Update to support delete note
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/note.js1
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, {