When changing the default yaml-defined-connection via the
establish_connection in,
say, a login controller (we are using user-level access to our
database), wrong
credentials are not immediately notified (no exception is raised).
Instead, this
happens only at the first database access after the
establish_connection call:
ActiveRecord::Base.establish_connection(...<wrong pwd>)
rescue
... # not getting here