Skip to content

Commit c1ef255

Browse files
committed
Switch to PostGIS ActiveRecord adapter
This adapter allows us to take advantage of features of PostGIS which we can use for spatial querying. Jira-Issue: MAV-6379 Jira-Issue: MAV-6706
1 parent 4d21f4a commit c1ef255

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ gem "stackprof"
2222

2323
# 3rd party gems
2424
gem "activerecord-import"
25+
gem "activerecord-postgis-adapter"
2526
gem "activerecord-session_store"
2627
gem "active_record_union"
2728
gem "amazing_print"

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ GEM
9090
timeout (>= 0.4.0)
9191
activerecord-import (2.2.0)
9292
activerecord (>= 4.2)
93+
activerecord-postgis-adapter (11.1.1)
94+
activerecord (~> 8.1.0)
95+
rgeo-activerecord (~> 8.1.0)
9396
activerecord-session_store (2.2.0)
9497
actionpack (>= 7.0)
9598
activerecord (>= 7.0)
@@ -664,6 +667,10 @@ GEM
664667
reverse_markdown (3.0.2)
665668
nokogiri
666669
rexml (3.4.4)
670+
rgeo (3.1.0)
671+
rgeo-activerecord (8.1.0)
672+
activerecord (>= 8.1, < 8.2)
673+
rgeo (>= 3.0)
667674
rladr (1.2.0)
668675
rspec (3.13.2)
669676
rspec-core (~> 3.13.0)
@@ -910,6 +917,7 @@ PLATFORMS
910917
DEPENDENCIES
911918
active_record_union
912919
activerecord-import
920+
activerecord-postgis-adapter
913921
activerecord-session_store
914922
amazing_print
915923
annotaterb

config/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default: &default
2-
adapter: postgresql
2+
adapter: postgis
33
encoding: unicode
44
pool: <%= 5 * ENV.fetch("RAILS_MAX_THREADS", 5).to_i %>
55

0 commit comments

Comments
 (0)