fixes #18551 - skip table_exists? error when the DB doesn't exist
MySQL and PostgreSQL DB adapters now throw a connection error under Rails 5 if the the DB doesn't already exist, as the schema cache is no longer used to answer the method call.
Related issues
Refactor #18551: table_exists? in initializer should ignore missing database
fixes #18551 - skip table_exists? error when the DB doesn't exist
MySQL and PostgreSQL DB adapters now throw a connection error under
Rails 5 if the the DB doesn't already exist, as the schema cache is no
longer used to answer the method call.