# How to handle multiple database in ruby on rails

**URL:** <https://www.ruby-forum.com/t/how-to-handle-multiple-database-in-ruby-on-rails/120693>\
**Category:** Rails\
**Created:** [November 19, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/how-to-handle-multiple-database-in-ruby-on-rails/120693 "2007-11-19T21:32:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 19, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/how-to-handle-multiple-database-in-ruby-on-rails/120693/1 "2007-11-19T21:32:12Z")

</div>

Hi to all,

Any can help me …

How to handle multiple database in ruby on rails.

I have to maintain two tables on one database and i have to maintain  
other 4 tables on another database.

Can you any one send me sample to code to do this please…

You can contact me on this mail id also removed\_email\_address@domain.invalid

Regards,

P.Gokula murthy

> **[Class RailsThinker \< Rails](http://railsthinker.blogspot.com)**
>
> Single Table inheritance from Rails Core.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 19, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/how-to-handle-multiple-database-in-ruby-on-rails/120693/2 "2007-11-19T21:48:36Z")

</div>

On Nov 19, 12:31 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> You can contact me on this mail id also removed\_email\_address@domain.invalid
> 
> Regards,
> 
> P.Gokula murthyhttp://railsthinker.blogspot.com

can you give more context about the app?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 19, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/how-to-handle-multiple-database-in-ruby-on-rails/120693/3 "2007-11-19T22:21:52Z")

</div>

try [http://www.railslodge.com/plugins/86-use-db](http://www.railslodge.com/plugins/86-use-db) by ELC tech

removed\_email\_address@domain.invalid wrote:

> Hi to all,
> 
> Any can help me …
> 
> How to handle multiple database in ruby on rails.
> 
> I have to maintain two tables on one database and i have to maintain  
> other 4 tables on another database.
> 
> Can you any one send me sample to code to do this please…
> 
> You can contact me on this mail id also removed\_email\_address@domain.invalid
