Comparing version 2.3.0 to 2.3.1
@@ -46,2 +46,5 @@ var util = require(__dirname+'/util.js'); | ||
this._table = (options.table != null) ? options.table : {}; | ||
this._table.primaryKey = this._pk; | ||
this._thinky = thinky; | ||
@@ -206,3 +209,3 @@ | ||
.then(function() { | ||
return r.tableCreate(model._name, {primaryKey: model._pk}).run(); | ||
return r.tableCreate(model._name, model._table).run(); | ||
}) | ||
@@ -209,0 +212,0 @@ .error(function(error) { |
{ | ||
"name": "thinky", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "RethinkDB ORM for Node.js", | ||
@@ -27,5 +27,5 @@ "main": "lib/thinky.js", | ||
"dependencies":{ | ||
"rethinkdbdash": "^2.3.0", | ||
"rethinkdbdash": "~2.3.0", | ||
"bluebird": "~2.10.2", | ||
"validator": "~ 3.22.1" | ||
"validator": "~3.22.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222104
5985
Updatedrethinkdbdash@~2.3.0
Updatedvalidator@~3.22.1