rails/rails — pull request #5578 by krsmurata (2012-03-26 02:20:44+00:00)
Title: Fixes support for database alias on database.yml 

Until Rails 3.1 we could use a string to copythe same config from another database config:

`development:
adapter: postgresql
encoding: utf8
database: test_development
host: localhost

production:
development`

This stopped working when @tenderlove used his refactoring sword to slice the `establish_connection` logic on commit 2a9a8ad4dfb2609a2275c1a3540ad2768562a026

I don't know if this is the right approach to fix this issue or even if it's a issue, if you guys accept it I need to apply this patch on master as well.