Rails 3 datatypes?

Elliot picture Elliot · Jan 13, 2011 · Viewed 72k times · Source

Where can I find a list of data types that can be used in rails 3? (such as text, string, integer, float, date, etc.?) I keep randomly learning about new ones, but I'd love to have a list I could easily refer to.

Answer

Nicolas Raoul picture Nicolas Raoul · Jun 27, 2011

Here are all the Rails3 (ActiveRecord migration) datatypes:

:binary
:boolean
:date
:datetime
:decimal
:float
:integer
:primary_key
:references
:string
:text
:time
:timestamp

Source