Skip to content

Instantly share code, notes, and snippets.

@t7y
Created March 11, 2011 22:25
Show Gist options
  • Save t7y/866687 to your computer and use it in GitHub Desktop.
Save t7y/866687 to your computer and use it in GitHub Desktop.
postgres database.yml file for sample app
development:
adapter: postgresql
encoding: unicode
database: sample_development
username: postgres
password:
host: localhost
port: 5432
source :rubygems
gem 'rails', '3.0.4'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'ar-octopus', :git => 'git://github.com/tchandy/octopus.git', :require => "octopus"
group :test do
gem 'capybara'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber'
gem 'spork'
gem 'launchy'
gem "rspec-rails", ">= 2.0.0.beta.16"
gem 'ruby-debug' if RUBY_VERSION < "1.9"
gem "aruba"
end
postgres: &postgres
adapter: postgresql
username: postgres
password:
encoding: unicode
host: localhost
port: 5432
octopus:
octopus_enviroments:
- development
development:
asia:
database: asia_shard
<<: *postgres
europe:
database: europe_shard
<<: *postgres
america:
database: america_shard
<<: *postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment