diff --git a/lib/waterline-schema/attributes.js b/lib/waterline-schema/attributes.js index 0e0e2d6..f2cd3a7 100644 --- a/lib/waterline-schema/attributes.js +++ b/lib/waterline-schema/attributes.js @@ -213,7 +213,7 @@ Attributes.prototype.autoAttributes = function(collection, connections) { // Extend definition with autoUpdatedAt and autoCreatedAt timestamps var now = { type: 'datetime', - 'default': 'NOW' + 'defaultsTo': 'NOW' }; if(collection.autoCreatedAt && !attributes[collection.autoCreatedAt]) {