Pass in the options

This commit is contained in:
Raymond Feng 2013-06-18 11:50:04 -07:00
parent 502b0512d3
commit b3e98f0c6f
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ ModelBuilder.prototype.buildModels = function (schemas) {
for (var s in schemas) {
var name = schemas[s].name;
var schema = buildSchema(name, schemas[s].properties, associations);
var model = this.define(name, schema);
var model = this.define(name, schema, schemas[s].options);
models[name] = model;
}