settings: &settings adapter: postgresql encoding: utf8 min_messages: warning timeout: <%%= Integer(ENV.fetch('DATABASE_TIMEOUT', 5000))%> pool: <%%= Integer(ENV.fetch('DATABASE_POOL', 5))%> development: <<: *settings reaping_frequency: <%%= Integer(ENV.fetch('DATABASE_REAPING_FREQUENCY', 10))%> database: <%= app_name %>_development test: <<: *settings reaping_frequency: <%%= Integer(ENV.fetch('DATABASE_REAPING_FREQUENCY', 10))%> database: <%= app_name %>_test staging: <<: *settings database: <%= app_name %>_staging production: <<: *settings username: password: database: <%= app_name %>_production pool: <%%= [Integer(ENV.fetch("PUMA_THREADS", 5)), Integer(ENV.fetch("DATABASE_POOL", 5))].max %>