# DSN (Data Source Name) examples
#
# sqlite3:
#   sqlite3://<%= root %>/db/development.sqlite3
# mysql:
#   mysql://user:pass@host/database
# postgres:
#   postgres://user:pass@host/database
# heroku:
#   <%= ENV['DATABASE_URL'] %>
production:
  dsn: <%= ENV['DATABASE_URL'] || ENV.select{|k|k=~/^HEROKU_POSTGRESQL_\w+_URL/}.to_a[0][1] %>
development:
  dsn: sqlite3://<%= root %>/db/development.sqlite3
test:
  dsn: <%= ENV['DATABASE_URL'] || "sqlite3://#{root}/db/test.sqlite3" %>

# DSN (Data Source Name) examples
#
# sqlite3:
#   sqlite3://<%= root %>/db/development.sqlite3
# mysql:
#   mysql://user:pass@host/database
# postgres:
#   postgres://user:pass@host/database
# heroku:
#   <%= ENV['DATABASE_URL'] %>
production:
  dsn: <%= ENV['DATABASE_URL'] %>
development:
  dsn: sqlite3://<%= root %>/db/development.sqlite3
test:
  dsn: <%= ENV['DATABASE_URL'] || "sqlite3://#{root}/db/test.sqlite3" %>

Remove dsn that it is only for heroku
Remove dsn that it is only for heroku
