Forum: Ruby on Rails Failover with Rails?

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.
Jim J. (Guest)
on 2006-02-22 20:05
Is it possible to change database settings programmatically?

What I am looking for is if there's a situation where a Find(), or
Create() fails, I would like to be able to redirect Rails to a different
db connection.

I know that this is something that could be accomplished at the OS
level, but because of certain constraints, I need to be able to do this
at the application level.

Thanks in advance.
This topic is locked and can not be replied to.