Created
April 9, 2023 01:19
-
-
Save salvadorgascon/9d47351b275a465b4fe1971d2e1859be to your computer and use it in GitHub Desktop.
PostgreSQL database configuration with PostGIS support for Ruby on Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: postgis | |
encoding: utf8 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
host: <%= ENV['PG_HOSTNAME'] %> | |
timeout: 5000 | |
development: | |
<<: *default | |
database: <%= ENV['PG_DATABASE_DEV'] %> | |
username: <%= ENV['PG_USERNAME_DEV'] %> | |
password: <%= ENV['PG_USERPASSWORD_DEV'] %> | |
reconnect: false | |
test: | |
<<: *default | |
database: <%= ENV['PG_DATABASE_TEST'] %> | |
username: <%= ENV['PG_USERNAME_TEST'] %> | |
password: <%= ENV['PG_USERPASSWORD_TEST'] %> | |
reconnect: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment