Permalink
Browse files

Prevent Model.normalizeColumnDef to underscore columnName.

  • Loading branch information...
1 parent 602ae9a commit 64158729da373470850b6e781e53da0a7d57ac72 @ret2libc ret2libc committed Dec 26, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/persist.js
View
@@ -32,6 +32,9 @@ exports.defineAuto = function(name, options, callback) {
this.asyncQueue().push(options, function(err, result) {
if (result.tables.hasOwnProperty(pluralName)) {
var columnDefs = result.tables[pluralName].columns;
+ for (var propertyName in columnDefs) {
+ columnDefs[propertyName].dbColumnName = propertyName;
+ }
var model = Model.define(name, columnDefs);
callback(null, model);
}

0 comments on commit 6415872

Please sign in to comment.