# Setting up a column alias in ActiveRecord object

**URL:** <https://www.ruby-forum.com/t/setting-up-a-column-alias-in-activerecord-object/96953>\
**Category:** Rails\
**Created:** [July 3, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/setting-up-a-column-alias-in-activerecord-object/96953 "2006-07-03T19:01:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [July 3, 2006, 7:01pm UTC](https://www.ruby-forum.com/t/setting-up-a-column-alias-in-activerecord-object/96953/1 "2006-07-03T19:01:57Z")

</div>

All,

I have a column name that I’d like to be able to access/set using a  
different ActiveRecord attribute name.

Is there a built-in way for me to alias my table column name with  
another name in my ActiveRecord class, or do I simply need to create  
thet getter and setter myself in order to “hide” the table column name?

Thanks,  
Wes
