Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3074 (closed enhancement: invalid)

Opened 4 years ago

Last modified 3 years ago

Provide a configuration point to automatically downcase table column names

Reported by: jamie@dang.com Assigned to: David
Priority: high Milestone:
Component: ActiveRecord Version: 0.14.3
Severity: normal Keywords:
Cc:

Description

In working with a legacy database that uses ALL CAPS (ugh) for the table column names, I find that it highly desirable for ActiveRecord to automatically downcase the model attribute keys. Seems to me this would be the desired default, with a configuration point that would allow it to be turned off. Thus, we'd get "foo.some_attribute" instead of "foo.SOME_ATTRIBUTE".

Change History

05/25/07 03:27:46 changed by danger

  • status changed from new to closed.
  • resolution set to invalid.

Anyone working with legacy data will need to develop custom code to support their particular constraints. This would be better suited to a plugin.