Skip to content
Browse files

Merge pull request #92 from ret2libc/master

Prevent Model.normalizeColumnDef to underscore columnName.
  • Loading branch information...
2 parents 602ae9a + 6415872 commit dee3ec1e630c87f2d8156895f494e897146b2ead @joeferner committed Dec 27, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/persist.js
View
3 lib/persist.js
@@ -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 dee3ec1

Please sign in to comment.
Something went wrong with that request. Please try again.