views:

32

answers:

1

How do we monitor that the connectivity between the rails app and the database is established. will rails try to re-connect the connection with mysql if it closes?

A: 
Cesario
i have written a ruby script which finds if the process is running or the mysql db connectivity is established and placed it in the scripts directory . can i call this ActiveRecord::Base.connected? from that ruby script?
railscoder
I've updated my post to respond to your comment :)
Cesario