Returns the column object for the named attribute.
# File active_record/base.rb, line 2182 def column_for_attribute(name) self.class.columns_hash[name.to_s] end
<code/>
<pre/>
<code/>and<pre/>for code samples.