@pablobm commented on this pull request.
> @@ -6,7 +6,8 @@ source "https://rubygems.org"
gem "rails", "~> 8.1.0"
gem "turbo-rails"
-# Use postgres as the database
+# Use postgres+postgis as the database
+gem "activerecord-postgis-adapter"
This is what I have so far:
1. `activerecord-postgis-adapter`: this seems to be the popular choice, but I'm
having issues with it and barely can make it work. Also I find it annoying that
I need to change the DB config to `adapter: postgis`, as then I have to change
it back when I move branches to look at something else.
2. `activerecord-postgis`: it works and doesn't have the `adapter:` annoyance.
However it requires Ruby 3.3 minimum.
For now I have gone with option 2. I need to research what's wrong with option
1 and whether I'm doing something wrong.
The differences appear to be with the implementation, but I haven't looked much
into it yet. They seem to be interchangeable, with queries written pretty much
the seem way and both relying on `rgeo-activerecord`.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6713#discussion_r2713583991
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6713/review/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev