diff -r b38cf3d4cf1f -r 423bdf56d103 client/js/models.js --- a/client/js/models.js Mon Jun 01 11:53:03 2015 +0200 +++ b/client/js/models.js Tue Jun 02 00:39:47 2015 +0200 @@ -94,7 +94,7 @@ description : this.get("description"), position : this.get("position"), image : this.get("image"), - color : this.get("color"), + style : this.get("style"), created_by : this.get("created_by") ? this.get("created_by") .get("_id") : null, size : this.get("size"), @@ -139,7 +139,7 @@ description : this.get("description"), from : this.get("from") ? this.get("from").get("_id") : null, to : this.get("to") ? this.get("to").get("_id") : null, - color : this.get("color"), + style : this.get("style"), created_by : this.get("created_by") ? this.get("created_by") .get("_id") : null }; @@ -190,9 +190,9 @@ // PROJECT var Project = Models.Project = RenkanModel.extend({ - schemaVersion : "1", + schema_version : "2", type : "project", - blacklist : [ 'saveStatus', 'loadingStatus',], + blacklist : [ 'saveStatus', 'loadingStatus'], relations : [ { type : Backbone.HasMany, key : "users", @@ -274,7 +274,7 @@ if(typeof(t) === "undefined") { t = this; } - var version = t.schemaVersion; + var version = t.schema_version; if(!version) { return 1; } @@ -296,8 +296,6 @@ }, toJSON : function() { var json = _.clone(this.attributes); - delete json.schemaVersion; - json.schema_version = this.schemaVersion; for ( var attr in json) { if ((json[attr] instanceof Backbone.Model) || (json[attr] instanceof Backbone.Collection) ||