YAML gotchas part 2: you can't use those references or whatever they're called before they are defined

This commit is contained in:
Jonne Haß 2012-04-10 22:08:21 +02:00
parent 8739d618ba
commit 1ea2473986

View file

@ -16,13 +16,20 @@ postgres: &postgres
password:
encoding: unicode
# You can ignore this
postgres_travis: &postgres_travis
adapter: postgresql
username: postgres
# Comment the the mysql line and uncomment the postgres line
# if you want to use postgres
common: &common
# Choose one of the following
<<: *mysql
#<<: *postgres
# Normally you don't need to touch anything here
development:
<<: *common
database: diaspora_development
@ -38,6 +45,3 @@ integration1:
integration2:
<<: *common
database: diaspora_integration2
postgres_travis: &postgres_travis
adapter: postgresql
username: postgres