class ActiveRecord::ConnectionNotEstablished

is given a nil object).
Raised when connection to the database could not been established (for example when