I’m building a rails app around several existing databases, the column names used in the existing databases do not work well at all with the rails association conventions. Is there a way to set column name aliases in a model similar to the way you can
class User < Activerecord::Base
self.set_table_name "users"
end
Could I set column name aliases when the existing db columns will not work with default rails association naming conventions?
In your model, just setup alias for attributes (columns). For example: