Legacy app problem

Got a problem, please help:

I am using ActiveRecord to talk to a legacy database.
The database has UPPERCASE table names. This is causing Active record to
not work because it is looking for lowercase table names.

I can’t make the tablenames lowercase because other applications use it.

Does anyone know a workaround for this?

Chris.

you can set the table name in the model class:

set_table_name “YOUR_UPPERCASE_TABLE”

On 27 Jun., 12:27, Chris F. [email protected]

Thanks dude!
Suppose I should have looked in ActiveRecord API.

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