不要怂,就是干,撸起袖子干!

Commit ea83dd0f by Sascha Depold

Merge pull request #369 from slamkajs/master

Added Model Table Name overrides
2 parents f1f5af6c 5e12ba98
Showing with 4 additions and 0 deletions
...@@ -19,7 +19,11 @@ module.exports = (function() { ...@@ -19,7 +19,11 @@ module.exports = (function() {
}, options || {}) }, options || {})
this.name = name this.name = name
if(!this.options.tableName) {
this.tableName = this.options.freezeTableName ? name : Utils.pluralize(name) this.tableName = this.options.freezeTableName ? name : Utils.pluralize(name)
} else {
this.tableName = this.options.tableName
}
this.rawAttributes = attributes this.rawAttributes = attributes
this.daoFactoryManager = null // defined in init function this.daoFactoryManager = null // defined in init function
this.associations = {} this.associations = {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!