From 1ea2473986f218b0054ab10d4596d58f86fd18a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Tue, 10 Apr 2012 22:08:21 +0200 Subject: [PATCH] YAML gotchas part 2: you can't use those references or whatever they're called before they are defined --- config/database.yml.example | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/database.yml.example b/config/database.yml.example index 6d286b325..858d998a7 100644 --- a/config/database.yml.example +++ b/config/database.yml.example @@ -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