From 4860cccef94152210d6cd6ebd2e269d23abbba49 Mon Sep 17 00:00:00 2001 From: Ricardo Tomasi Date: Sun, 19 May 2013 18:52:53 -0300 Subject: [PATCH] Define Settings models --- core/shared/models/models.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/core/shared/models/models.js b/core/shared/models/models.js index 6592ce54c8..56dcabd16d 100644 --- a/core/shared/models/models.js +++ b/core/shared/models/models.js @@ -12,7 +12,8 @@ Post, Posts, User, - Setting; + Setting, + Settings; Post = Bookshelf.Model.extend({ @@ -68,15 +69,19 @@ }); Setting = Bookshelf.Model.extend({ + tableName: 'settings', + hasTimestamps: true + }); - tableName: 'settings' - + Settings = Bookshelf.Collection.extend({ + model: Setting }); module.exports = { Post: Post, Posts: Posts, User: User, - Setting: Setting + Setting: Setting, + Settings: Settings }; }()); \ No newline at end of file