I have a model for one of my database tables. I want to override the column name for that particular table. How would I achieve it.
For example, let my table be call
I'm a little late to the party here, but a really elegant way to do it is to simply use super
super
class Dummy < ApplicationRecord def col_a super % 10 === 0 ? 0 : super end end