In model forests you can use the following basic field types: they are all supported in ActiveRecord-supported databases without any additional gem (MySQL, PostgreSQL, SQLite):
:binary:boolean:date:datetime:decimal:float:integer:primary_key:string:text:time:timestamp
In the scaffold generator, you can also declare external links using the field type :references , which additionally adds the belongs_to link to the new model.
If you use Rails 4 and PostgreSQL, you can take advantage of the following benefits:
:hstore:array:cidr_address:ip_address:mac_address
To display the user interface (data type of the model type → HTML), the following image has all the main field types:

Edu Lomeli Jan 22 '14 at 2:39 on 2014-01-22 02:39
source share