From a15eb4dbdaed2a6d72ef2a0cb6db49ac578ab752 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 10 May 2013 09:35:40 +0200 Subject: added 'when'-field to Schema --- models/pPost.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/pPost.js b/models/pPost.js index c02f863..1ce50b2 100644 --- a/models/pPost.js +++ b/models/pPost.js @@ -17,7 +17,8 @@ var pPostSchema = new Schema({ file: { type: String, default: '', trim: true }, currency: { type: String, default: 'kr', trim: true }, created: { type: Date, default: Date.now }, - updated: { type: Date, default: Date.now } + updated: { type: Date, default: Date.now }, + when: { type: Date, default: Date.now } }); -- cgit v1.2.3