Skip to content

Instantly share code, notes, and snippets.

@joselo
Created July 2, 2012 23:13
Show Gist options
  • Save joselo/3036295 to your computer and use it in GitHub Desktop.
Save joselo/3036295 to your computer and use it in GitHub Desktop.
database.yml config file for postgresql
default: &local_defaults
adapter: postgresql
host: localhost
port: 5432
min_messages: warning
encoding: utf8
username: postgres
password:
template: template0
development:
<<: *local_defaults
database: myapp_development
test:
<<: *local_defaults
database: myapp_test
staging:
<<: *local_defaults
database: myapp_development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment