Skip to content

Commit

Permalink
Workaround to connect database using postgis adapter
Browse files Browse the repository at this point in the history
The activerecord-postgis-adapter does not support Heroku by default. The following commit replaces the current DATABASE_URL adapter by postgis.

For more details check out the [issue on github](rgeo/activerecord-postgis-adapter#14)
  • Loading branch information
lucasgomide committed Nov 8, 2020
1 parent 96a7dbc commit 6890f3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ test:

production:
<<: *default
url: <%= ENV.fetch("DATABASE_URL", "").gsub(/postgres/, 'postgis') %>

0 comments on commit 6890f3a

Please sign in to comment.