Hi!
In my Rails 2.3 app there is a possible situation when database is down, but app still should work. I.e. I need to disable part of my application when database is down. E.g., have some method like is_database_up?
that will return true if database is up. For now, if database crushes, whole app will crush too. Is there any way to handle this situation?
P.S.: I'm actually asking "What to put inside is_database_up?
". I.e. is there any way to catch ActiveRecord exceptions and tell ActiveRecord not to use any database? Or is there any way to understand that database is down during runtime by any ActiveRecord method. Something like this.