Skip to content

Commit

Permalink
DRY for database.sample.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zudochkin committed Sep 14, 2013
1 parent 01edad6 commit d357338
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions config/database.sample.yml
@@ -1,23 +1,18 @@
development:
setup: &setup
adapter: postgresql
encoding: unicode
database: rails-examples_development
pool: 5
username: postgres
password:
encoding: unicode

development:
<<: *setup
database: rails-examples_development

test:
adapter: postgresql
encoding: unicode
<<: *setup
database: rails-examples_test
pool: 5
username: postgres
password:


production:
adapter: postgresql
encoding: unicode
database: rails-examples_production
pool: 5
<<: *setup
username: rails-examples
password:
database: rails-examples_production

0 comments on commit d357338

Please sign in to comment.