From 21aba2fe5e726b71c20981c38c261ff7163f8688 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 24 Dec 2015 16:36:58 +0800 Subject: [PATCH] more modular database.yml.default --- config/database.yml.default | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/config/database.yml.default b/config/database.yml.default index 06bfae01..f8121488 100644 --- a/config/database.yml.default +++ b/config/database.yml.default @@ -1,10 +1,21 @@ -development: +default: &default min_messages: WARNING adapter: postgresql host: 127.0.0.1 port: 5432 encoding: unicode - database: metamap002_development pool: 5 username: postgres - password: "3112" \ No newline at end of file + password: "3112" + +development: + <<: *default + database: metamap002_development + +test: + <<: *default + database: metamap002_test + +production: + <<: *default + database: metamap002_production