diff --git a/lib/model-builder.js b/lib/model-builder.js index 77badeb7..ad3a9482 100644 --- a/lib/model-builder.js +++ b/lib/model-builder.js @@ -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; }