ActiveRecord 'Column' class doc?

Can't seem to find the Column class API documentation. For example, content_columns returns a list of Column objects, but where is the doc for this Column class?

Thanks in advance, Don McClean

Hi Don, Don.Mc wrote:

Can't seem to find the Column class API documentation. For example, content_columns returns a list of Column objects, but where is the doc for this Column class?

Don't know if this will help, but I had a similar situation recently and someone suggested I use script\console to find out what I wanted to know. In my case I wanted to know what methods were valid on a field in my Actors table. So after starting script\console...

require 'Actor' Actor.columns.methods

returns the methods on all the fields.

Actor.columns_hash['field_name'].methods

returns the methods on the specified field

Actor.columns_hash['field_name'].limit # using one method as an example

returns the size of the specified field.

etc.

HTH, Bill

Bill,   Thanks, that is a good idea.

Don

Thanks, thats it!

Don