1602/express-on-railway — Issue #88: model schema
Author: bshorrosh
Created: 2011-12-27 04:55:59+00:00
State: open

Hi,

First thank you for this great work; very much appreciated.

I'm running mongodb-server

tried to repeat the following, which described at your site:
railway g model user name password

However, the generated model didn't include the following:

/**
* User
*/
var UserSchema = new Schema;
UserSchema.add({
name: { type: String },
password: { type: String }
});
mongoose.model("User", UserSchema);
module.exports["User"] = mongoose.model("User");

Your feedback is appreciated.

Regards