Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- platform: &platform
- adapter: postgis
- schema_search_path: public, postgis
- postgis_extension: postgis
- default: &default
- <<: *platform
- username: <%= ENV['DB_USER'] || 'default_username' %>
- password: <%= ENV['DB_PASS'] || 'default_password' %>
- host: <%= ENV['DB_HOST'] || 'localhost' %>
- port: <%= ENV['DB_PORT'] || 5432 %>
- database: <%= ENV['DB_NAME'] || 'default_dbname' %>
- pool: <%= ENV['DB_POOL'] || 5 %>
- encoding: unicode
- development:
- <<: *default
- database: dbname_development<%= ENV['DB_SUFFIX'] %>
- min_messages: warning
- test:
- <<: *default
- database: dbname_test<%= ENV['DB_SUFFIX'] %>
- min_messages: error
- <% if %w[acceptance staging performance production].include?(ENV['RAILS_ENV']) %>
- <%= ENV['RAILS_ENV'] %>:
- <<: *default
- <% if ENV['DB_REPLICA_HOST'] %>
- slave:
- <<: *default
- host: <%= ENV['DB_REPLICA_HOST'] %>
- <% end %>
- <% end %>
Add Comment
Please, Sign In to add comment