Navigation Menu

Skip to content

Commit

Permalink
Add IndexField#setType() as a shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent 61fedc0 commit d49f2df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/database/index-field.js
Expand Up @@ -135,6 +135,11 @@ IndexField.prototype = {
return this._type = type
},

setType: function(type) {
this.type = type;
return this;
},

get defaultValue() {
return null;
},
Expand Down

0 comments on commit d49f2df

Please sign in to comment.