Forum: Ruby on Rails Failover with Rails?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
66c680f88e8c379fe408d32299dfb4e6?d=identicon&s=25 Jim Jones (aantix)
on 2006-02-22 19: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.