From 9456129b956a964cefb43b73ac771ec71baf084a Mon Sep 17 00:00:00 2001 From: Pablo Brasero Date: Tue, 13 Jan 2026 14:48:34 +0000 Subject: [PATCH] Add PostGIS adapter for ActiveRecord --- Gemfile | 3 ++- Gemfile.lock | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b93d51ba3..efc2ea838 100644 --- a/Gemfile +++ b/Gemfile @@ -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" gem "pg" # Use SCSS for stylesheets diff --git a/Gemfile.lock b/Gemfile.lock index 3fdb722ee..031ee0fc3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,6 +92,10 @@ GEM timeout (>= 0.4.0) activerecord-import (2.2.0) activerecord (>= 4.2) + activerecord-postgis (0.5.1) + activerecord (>= 8.1.0, < 8.2) + pg + rgeo-activerecord (>= 8.0) activestorage (8.1.3) actionpack (= 8.1.3) activejob (= 8.1.3) @@ -784,6 +788,10 @@ GEM reline (0.6.3) io-console (~> 0.5) rexml (3.4.4) + rgeo (3.1.0) + rgeo-activerecord (8.1.0) + activerecord (>= 8.1, < 8.2) + rgeo (>= 3.0) rinku (2.0.6) rotp (6.3.0) rouge (4.7.0) @@ -922,6 +930,7 @@ DEPENDENCIES actionpack-page_caching (>= 1.2.0) active_record_union activerecord-import + activerecord-postgis addressable (~> 2.8) annotaterb argon2 -- 2.39.5