Setting up a column alias in ActiveRecord object


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?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs