views:

23

answers:

1

I can't find the active record documenation page that has a list of all the data types.

Can someone help me out?

+2  A: 

If you're talking about the types for migrations, e.g. string, integer, datetime, etc, then you want ActiveRecord::ConnectionAdapters::TableDefinition, the column method.

From api.rubyonrails.org:

http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html#method-i-column

From APIDock (which I tend to like better): http://apidock.com/rails/ActiveRecord/ConnectionAdapters/TableDefinition/column

Mark Thomas
@Mark Thomas: Just a matter of choice, or any particular reason to like ApiDock over official docs?
Swanand
@Swanand It's the same content, of course, but the navigation is better. And the ability to see how much something has changed in various Rails versions is invaluable.
Mark Thomas