|Use "establish_connection"||Ruby-Forum.com User||2/1/10 5:36 AM|
I have 2 database for my application "development1" and "development2".
My default database is "development1". But I have to update the
"contacts" table which is in "davelopment2". So I know that I have to
use the "establish_connection" to establish a connection with the
I am doing like this
|Re: Use "establish_connection"||Ruby-Forum.com User||2/1/10 5:48 AM|
If you are always going to CRUD contacts in development2, then you can
set the connection on the model:
|Re: Use "establish_connection"||Ruby-Forum.com User||2/1/10 8:35 PM|
Yes it makes sense, to add the configuraion on model level.
|Re: Use "establish_connection"||tispratik||3/3/10 12:48 PM|
How do we open a read-only connection to the second database