This commit is contained in:
1602 2011-10-11 23:28:27 +04:00
parent 13df1ef4a1
commit f4642ec398
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ var s = new Schema('redis');
var Post = schema.define('Post', { var Post = schema.define('Post', {
title: { type: String, length: 255 }, title: { type: String, length: 255 },
content: { type: Schema.Text }, content: { type: Schema.Text },
date: { type: Date, detault: Date.now }, date: { type: Date, default: Date.now },
published: { type: Boolean, default: false } published: { type: Boolean, default: false }
}); });
// simplier way to describe model // simplier way to describe model