I'm not sure how you can change the column name, but the next workflow
in your model create a virtual attribute unit_price
-
attr_accessor :unit_price
validates_presence_of :unit_price, :message => "This is a custom validation message"
def before_validation
self.unit_price = self.unit
end
Sameera