A class containing information about a table column.
Located in /activerecord/lib/ActiveRecord/Column.php (line 15)
The default value
The size limit of the column
The column name
Whether or not the column may contain nulls
The precision of the column
A flag indicating whether or not this is the primary key for the
table
The scale of the columm
The column data type (as reported by the DB)
The simplified column data type
Constructor
Return the default value for the column
Retrieve the size limit from a raw SQL type
Retrieve the precision (for decimal types) from a raw SQL type
Retrieve the scale (for decimal types) from a raw SQL type
Return true if the data type is a numeric type
Return true if the data type is a text type
Return the size limit of the column
Return the column name
Returns true if the column may contain nulls, false otherwise.
Return the precision of the column
Returns true if this column is the tables primary key, false otherwise.
The opposite of type_cast. Accepts a data type appropriate for this column and converts it (if required) back to a value appropriate for use in a SQL statement.
Return the scale of the columm
Set whether or not this column is the tables primary key.
Return a normalized type name from a raw SQL type
Return the column data type (as reported by the DB)
Return the column data type as a normalized name. May be one of integer, float, decimal, datetime, date, timestamp, time, text, string, binary, or boolean.
Cast a string or raw database value to the correct type for this column
Documentation generated on Wed, 25 Apr 2012 09:46:41 -0700 by phpDocumentor 1.4.3