# Legacy and MVC faq

**URL:** <https://www.ruby-forum.com/t/legacy-and-mvc-faq/106402>\
**Category:** Rails\
**Created:** [June 9, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/legacy-and-mvc-faq/106402 "2007-06-09T23:44:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thufir](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ee7513/32.png) [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Post date:** [June 9, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/legacy-and-mvc-faq/106402/1 "2007-06-09T23:44:58Z")

</div>

What’s meant by a “model Client”? Is this an object?

One shot modifications are the kind of modification that you do model  
per model or private key per private key.

For example, let’s suppose that your legacy database use a table named  
FooBar, and that you’d like to map the model Client onto this table.  
By using the set\_table\_name class method you can define this:

1  
2 class Client \< ActiveRecord::Base  
3 set\_table\_name “FooBar”  
4 end  
5

from the tutorial at \<[http://sl33p3r.free.fr/tutorials/rails/legacy/](http://sl33p3r.free.fr/tutorials/rails/legacy/)  
legacy\_databases.html\>

thanks,

Thufir
