Hacker News new | ask | show | jobs
by bshimmin 3859 days ago
Looking at the last example, how does it know that `name` is of type String and `age` is of type Number? Should it not be

  $ frodo generate model user name:string age:number
or something?
2 comments

In Rails, attributes without an explicit type are `String` by default. Not sure how age became a `Number`, though.
I think "Number" is from Mongoose, which is an ODM for MongoDB.
Ooops.... Thank you. Of course, it should be so.