defaults: &defaults
  host: localhost
  # slaves:
  #   - host: slave1.local
  #     port: 27018
  #   - host: slave2.local
  #     port: 27019

development:
  <<: *defaults
  database: datajam_development

test:
  <<: *defaults
  database: datajam_test

# set these environment variables on your prod server
production:
  uri: <%= ENV['MONGOLAB_URI'] %>

defaults: &defaults
  host: localhost
  # slaves:
  #   - host: slave1.local
  #     port: 27018
  #   - host: slave2.local
  #     port: 27019

development:
  <<: *defaults
  database: datajam_development

test:
  <<: *defaults
  database: datajam_test

# set these environment variables on your prod server
production:
  uri: datajam_production

Set production db to datajam_production
Set production db to datajam_production