[#1702] much more thorough migration of tasks to new schema, providing defaults

where task attrs fail type checks
This commit is contained in:
Tyler Renelle
2013-11-01 10:42:40 -07:00
parent eccc9a7953
commit 2f83ac27ae
2 changed files with 30 additions and 5 deletions
+1 -1
View File
@@ -13,8 +13,8 @@ var _ = require('lodash');
// -----------
var TaskSchema = new Schema({
history: [{date:Date, value:Number}],
_id:{type: String,'default': helpers.uuid},
history: [{date:Date, value:Number}],
text: String,
notes: {type: String, 'default': ''},
tags: {type: Schema.Types.Mixed, 'default': {}}, //{ "4ddf03d9-54bd-41a3-b011-ca1f1d2e9371" : true },