rails/rails — Issue #3586: table name and colums name uppercased are not recongnized
Author: Javix
Created: 2011-11-09 17:02:00+00:00
State: open

When trying to connect to MySQL 5 DB, created not in accordance with Rails convention, I discovered that everything is case-sensitive. For example, even if the table name is USERS, I must precise it explicitly in my model class:
```
class User < AR
set_table_name 'USERS'
end
```
If not, I get an error 'The table Users' doesn't exist.

The same for all the columns names in upper case like USER_ID, ADDRESS. If I call a mehtod in a standard way:
```
user.address
```
I get the error like 'the missing method 'addres ... etc.'
Looking in the code of Arel and ActiveRecord I found nothing that would 'upcased' a table name or its columns names. Am I wrong? How to fix that in case when you work on an existing DB that does not follow RoR convention and to avoid the declaration of all the attributes to downcase? Or may be there is another solution? Thanks