# Legacy app problem

**URL:** <https://www.ruby-forum.com/t/legacy-app-problem/107916>\
**Category:** Rails\
**Created:** [June 27, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/legacy-app-problem/107916 "2007-06-27T12:27:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisfinne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f1d935/32.png) [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Post date:** [June 27, 2007, 12:27pm UTC](https://www.ruby-forum.com/t/legacy-app-problem/107916/1 "2007-06-27T12:27:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chrisfinne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f1d935/32.png) [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Post date:** [June 27, 2007, 2:31pm UTC](https://www.ruby-forum.com/t/legacy-app-problem/107916/2 "2007-06-27T14:31:57Z")

</div>

you can set the table name in the model class:

set\_table\_name “YOUR\_UPPERCASE\_TABLE”

On 27 Jun., 12:27, Chris F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![chrisfinne](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f1d935/32.png) [@chrisfinne](https://www.ruby-forum.com/u/chrisfinne)\
**Post date:** [June 27, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/legacy-app-problem/107916/3 "2007-06-27T15:01:02Z")

</div>

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