MCPcopy Create free account
hub / github.com/dresende/node-orm2 / setup

Function setup

test/integration/model-create.js:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 var Person = null;
9
10 var setup = function () {
11 return function (done) {
12 Person = db.define("person", {
13 name : String
14 });
15 Pet = db.define("pet", {
16 name : { type: "text", defaultValue: "Mutt" }
17 });
18 Person.hasMany("pets", Pet);
19
20 return helper.dropSync([Person, Pet], done);
21 };
22 };
23
24 before(function (done) {
25 helper.connect(function (connection) {

Callers 1

model-create.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected