default: &default adapter: postgresql encoding: utf8 host: <%%= ENV['DATABASE_HOST'] %> username: <%%= ENV['DATABASE_USERNAME'] %> password: <%%= ENV['DATABASE_PASSWORD'] %> pool: <%%= Integer(ENV.fetch("DB_POOL", 5)) %> reaping_frequency: <%%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %> timeout: 5000 development: <<: *default database: <%= app_name %>_development test: <<: *default database: <%= app_name %>_test production: <<: *default database: <%%= ENV.fetch('DATABASE_NAME','<%= app_name %>_production') %> pool: <%%= [Integer(ENV.fetch('MAX_THREADS', 5)), Integer(ENV.fetch("DB_POOL", 5))].max %> min_messages: warning