Permalink
Browse files

Merge branch 'master' of github1602:1602/jugglingdb

  • Loading branch information...
2 parents 029dfb6 + f877dab commit fe4f72218bbbe9998aeae054bcbbce1735c6efeb @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 fe4f722

Please sign in to comment.