The default database.yml file in Rails apps contains a lot of redundancy. You need to specify three different databases, and often some of the fields are the same for each one. YAML supports refactoring common data into a single structure...
The default database.yml file in Rails apps contains a lot of redundancy. You need to specify three different databases, and often some of the fields are the same for each one. YAML supports refactoring common data into a single structure by using the concepts it calls anchors, aliases, and merging keys.