Use ActiveRecord::Base.connection.active? and rescue any exception in connect_to_db?
This ensures that rake tasks that don't need a DB connection can be run without one.
Showing
This ensures that rake tasks that don't need a DB connection can be run without one.
mentioned in commit 9ade902e
·mentioned in commit 9ade902e
mentioned in commit 6acfb924
·mentioned in commit 6acfb924