# column names

**URL:** <https://discuss.rubyonrails.org/t/column-names/51260>\
**Category:** rubyonrails-talk\
**Created:** [April 28, 2010, 4:44pm UTC](https://discuss.rubyonrails.org/t/column-names/51260 "2010-04-28T16:44:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Pavling](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Michael\_Pavling](https://discuss.rubyonrails.org/u/Michael_Pavling)\
**Post date:** [April 28, 2010, 4:44pm UTC](https://discuss.rubyonrails.org/t/column-names/51260/1 "2010-04-28T16:44:50Z")

</div>

There's a few that might do what you want. Have a look at:

> **[ActiveRecord::Base](https://api.rubyonrails.org/classes/ActiveRecord/Base.html)**
>
> Active Record Active Record objects don't specify their attributes directly, but rather infer them from the table definition with which they're linked.

Look particularly at: &nbsp;&nbsp;Model.content\_columns &nbsp;&nbsp;Model.columns &nbsp;&nbsp;Model.column\_names &nbsp;&nbsp;Model.columns\_hash
