Skip to content

Commit b4eef4b

Browse files
committed
Enable PostGIS
This ensures that the PostGIS extension is enabled, allowing us to use features such as spatial queries and point columns. Jira-Issue: MAV-6379 Jira-Issue: MAV-6706
1 parent 7d3bb61 commit b4eef4b

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

config/initializers/inflections.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
inflect.acronym "DfE"
2323
inflect.acronym "FHIR"
2424
inflect.acronym "GIAS"
25+
inflect.acronym "GIS"
2526
inflect.acronym "GP"
2627
inflect.acronym "HCA"
2728
inflect.acronym "JWKS"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
class EnablePostGIS < ActiveRecord::Migration[8.1]
4+
def change
5+
enable_extension "postgis"
6+
end
7+
end

db/schema.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pg_catalog.plpgsql"
1616
enable_extension "pg_trgm"
17+
enable_extension "postgis"
1718

1819
# Custom types defined in this database.
1920
# Note that some types may not work with other database engines. Be careful if changing database.

0 commit comments

Comments
 (0)