# PostgreSQL default: &default adapter: postgresql encoding: unicode pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> host: <%= ENV.fetch("DATABASE_HOST", "localhost") %> port: <%= ENV.fetch("DATABASE_PORT", 5432) %> username: <%= ENV.fetch("POSTGRES_USER", "simplecrm") %> password: <%= ENV.fetch("POSTGRES_PASSWORD", "simplecrm_dev") %> development: <<: *default database: <%= ENV.fetch("POSTGRES_DB", "simplecrm_development") %> test: <<: *default database: simplecrm_test production: <<: *default database: <%= ENV.fetch("POSTGRES_DB", "simplecrm_production") %> url: <%= ENV["DATABASE_URL"] %>