Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created January 10, 2013 17:13
Show Gist options
  • Save brandon-beacher/4503925 to your computer and use it in GitHub Desktop.
Save brandon-beacher/4503925 to your computer and use it in GitHub Desktop.
development:
adapter: postgresql
encoding: unicode
database: passion-dragon_development
min_messages: warning
test:
adapter: postgresql
encoding: unicode
database: passion-dragon_test
min_messages: warning
@joshskeen
Copy link

or if you want to get fancy, you can do:

common: &common
  adapter: postgresql
  encoding: utf8
  min_messages: WARNING
  host: localhost

development:
  <<: *common
  database: investment_chooser_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test: &test
  <<: *common
  database: investment_chooser_test

kind of nice because it reuses the common elements for each environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment