diff --git a/lib/adapters/mongoose.js b/lib/adapters/mongoose.js index 01a0a5e5..4758ffae 100644 --- a/lib/adapters/mongoose.js +++ b/lib/adapters/mongoose.js @@ -48,7 +48,7 @@ MongooseAdapter.prototype.define = function (descr) { if (props[key].name === 'Object') props[key] = mongoose.Schema.Types.Mixed; }); var schema = new mongoose.Schema(props); - this._models[descr.model.modelName] = mongoose.model(descr.model.modelName, schema); + this._models[descr.model.modelName] = mongoose.model(descr.model.modelName, schema, descr.settings.table || null); this.cache[descr.model.modelName] = {}; };