From a57d043a0ffecde4692b42f75815a121edd2b43c Mon Sep 17 00:00:00 2001 From: Herman Klushin Date: Thu, 10 Nov 2016 17:20:38 +0300 Subject: [PATCH] fix type DefaultsTo --- lib/waterline-schema/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) {