# Model for multiple tables

**URL:** <https://www.ruby-forum.com/t/model-for-multiple-tables/113967>\
**Category:** Rails\
**Created:** [September 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/model-for-multiple-tables/113967 "2007-09-06T19:06:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextpulse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Post date:** [September 6, 2007, 7:06pm UTC](https://www.ruby-forum.com/t/model-for-multiple-tables/113967/1 "2007-09-06T19:06:44Z")

</div>

How do I construct a model to map multiple tables?

For example:

table1, table2, table3

The model will represent a join of table1+table2+table3

I did notice there is a join\_table for use. But I don’t want to create  
separate models for table1, table2 etc since I will never need to  
access them.

Essentially a way to encapsulate the diff tables.

thanks.
