ActiveRecord::ConnectionNotEstablished

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