Update README.md

This commit is contained in:
Anatoliy Chakkaev 2013-04-04 19:28:41 +04:00
parent 704bc965bd
commit f877dab288
1 changed files with 2 additions and 1 deletions

View File

@ -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 }
});