Index: Gemfile =================================================================== --- Gemfile (revision 21201) +++ Gemfile (working copy) @@ -68,6 +68,9 @@ when /sqlserver/ gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw] gem "activerecord-sqlserver-adapter", "~> 5.2.1", :platforms => [:mri, :mingw, :x64_mingw] + when /postgis/ + gem 'pg', '~> 1.2.3' + gem 'activerecord-postgis-adapter' else warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems") end Index: lib/redmine/database.rb =================================================================== --- lib/redmine/database.rb (revision 21201) +++ lib/redmine/database.rb (working copy) @@ -28,7 +28,7 @@ # Returns true if the database is PostgreSQL def postgresql? - /postgresql/i.match?(ActiveRecord::Base.connection.adapter_name) + /postgresql/i.match?(ActiveRecord::Base.connection.adapter_name) or /postgis/i.match?(ActiveRecord::Base.connection.adapter_name) end # Returns the PostgreSQL version or nil if another DBMS is used