Returns a hash of column objects for the table associated with this class.
# File active_record/base.rb, line 1087 def columns_hash @columns_hash ||= columns.inject({}) { |hash, column| hash[column.name] = column; hash } end
<code/>
<pre/>
<code/>and<pre/>for code samples.