rails/rails — comment on commit 9dd168c40262e850885fcb3dd0028b9067bb627f
File: activerecord/lib/active_record/railties/databases.rake line 552
By vijaydev:

The compact here is needed in case configuration for the test environment is missing. I've added it in ddce29bfa12462fde2342a0c2bd0eefd420c0eab. Also added a check for the database key in the config as done in similar tasks earlier.