Does someone have a complete list of model types that be specified when generating a model scaffolding
e.g.
foo:string
bar:text
baz:boolean
You can use the following basic field types in model scaffolding, all are supported in ActiveRecord supported databases without any extra gem (MySQL, PostgreSQL, SQLite):
:binary:boolean:date:datetime:decimal:float:integer:primary_key:string:text:time:timestampIn the scaffold generator you can also declare the foreign references using :references field type, which additionaly adds a belongs_to reference in the new model.
If you use Rails 4 and PostgreSQL, you can take advantage of these:
:hstore:array:cidr_address:ip_address:mac_addressFor UI mapping (Model scaffold data type -> HTML), the next image has all the basic field types:
