Reconnect to another database in rails application

I have a rails application using mysql.
In my architecture, I deployed 2 mysql servers.
In my database.yml, I specified to my application to connect on the
server 1.
But I would know if it's possible,in the case where this mysql server
If I can specify to my application to reconnect to the other server.

I think I have to overload some rails function's API, and I don't know
if rails can support to reconnect to another server.

If somebody can answer to me ???
Thanks in advance.
Cheers ...