Fields

suggest change

As per the Mongoid Documentation, there are 16 valid field types:

To add a field (let’s call it name and have it be a String), add this to your model file:

field :name, type: String

To set a default value, just pass in the default option:

field :name, type: String, default: ""

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Mongoid:
*Fields

Table Of Contents
25Mongoid
55CSV