Forum: Ruby on Rails Oracle connection problems when connecting to multiple datab

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason Hale (Guest)
on 2006-03-19 05:49
(Received via mailing list)
I have a rails application that connects to two different databases.
first (primary) database is MySQL and the second is Oracle.  I have
the example in the Rails Recipes book and I have created a base class
the models connecting to oracle like this:

class ConferenceBase < ActiveRecord::Base
	establish_connection :conference

:conference is setup in the database.yml.

A model subclass can now connect to my Oracle database -- a little too
Every time I do anything with a subclass of this model it establishes a
connection.  Does anyone know how to do this so a new connection to
is created everytime you access the model?

This topic is locked and can not be replied to.