Skip to content

Commit b617157

Browse files
committed
Workaround to connect database using postgis adapter
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)
1 parent f5bca17 commit b617157

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/database.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ test:
1313

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

0 commit comments

Comments
 (0)