Skip to content
Snippets Groups Projects
Commit 55ab92c0 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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.
parent 869b4d7c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment