We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d2ed7 commit 02fa568Copy full SHA for 02fa568
generated/server/db/index.js
@@ -11,7 +11,7 @@ var db = mongoose.connect(DATABASE_URI).connection;
11
// Require our models -- these should register the model into mongoose
12
// so the rest of the application can simply call mongoose.model('User')
13
// anywhere the User model needs to be used.
14
-require('./models/user');
+require('./models');
15
16
var startDbPromise = new Q(function (resolve, reject) {
17
db.on('open', resolve);
generated/server/db/models/index.js
@@ -0,0 +1,4 @@
1
+// Require our models -- these should register the model into mongoose
2
+// so the rest of the application can simply call mongoose.model('User')
3
+// anywhere the User model needs to be used.
4
+require('./user');
0 commit comments