development:
  adapter: postgis
  encoding: unicode
  database: bus_detective_development

test:
  adapter: postgis
  encoding: unicode
  database: bus_detective_test

production:
  adapter: postgis
  encoding: unicode
  url:  <%= ENV["DATABASE_URL"].sub(/^postgres/, "postgis") %>
  pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>


development:
  adapter: postgis
  encoding: unicode
  database: bus_detective_development

test:
  adapter: postgis
  encoding: unicode
  database: bus_detective_test

production:
  adapter: postgis
  encoding: unicode
  url:  <%= ENV["DATABASE_URL"].to_s.sub(/^postgres/, "postgis") %>
  pool: <%= ENV["DB_POOL"] || ENV['MAX_THREADS'] || 5 %>


Handle nil in db config
Handle nil in db config
