Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 704bc96 commit f877dab288045210f51c86fcf232d5f41e81be82 @1602 committed Apr 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
@@ -131,7 +131,8 @@ var schema = new Schema('redis', {port: 6379}); //port number depends on your co
var Post = schema.define('Post', {
title: { type: String, length: 255 },
content: { type: Schema.Text },
- date: { type: Date, default: Date.now },
+ date: { type: Date, default: function () { return new Date;} },
+ timestamp: { type: Number, default: Date.now },
published: { type: Boolean, default: false, index: true }
});

0 comments on commit f877dab

Please sign in to comment.