Instead of creating a connection and looking at its database adapter, look at the configured adapter instead.
This prevents issues when trying to compile assets or running other rake tasks in RAILS_ENV=production that are supposed to work without a running database.
Instead of creating a connection and looking at its database adapter, look at the configured adapter instead.
This prevents issues when trying to compile assets or running other rake tasks in
RAILS_ENV=production
that are supposed to work without a running database.