-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from rgeo/bump-7-2
Bump to 7.2.0
- Loading branch information
Showing
46 changed files
with
348 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env ruby | ||
|
||
$:.unshift(File.expand_path("../lib", __dir__)) | ||
|
||
# require "bundler/setup" | ||
# Bundler.require :development | ||
# | ||
require "activerecord-postgis-adapter" | ||
|
||
db_name = "activerecord_postgis_adapter_console" | ||
system("psql -c 'drop database if exists #{db_name}' postgres", | ||
exception: true) | ||
system("psql -c 'create database #{db_name}' postgres", | ||
exception: true) | ||
system(psql = "psql -c 'create extension postgis' #{db_name} ", exception: true) | ||
|
||
ActiveRecord::Base.establish_connection( | ||
adapter: "postgis", | ||
database: db_name | ||
) | ||
|
||
class Country < ActiveRecord::Base | ||
end | ||
|
||
ActiveRecord::Schema.define do | ||
create_table(:countries) do |t| | ||
t.st_polygon(:area, srid: 4326) | ||
t.string(:name) | ||
end | ||
end | ||
|
||
require "irb" | ||
IRB.start(__FILE__) |
27 changes: 0 additions & 27 deletions
27
lib/active_record/connection_adapters/postgis/create_connection.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
module ActiveRecord | ||
module ConnectionAdapters | ||
module PostGIS | ||
VERSION = "9.0.2" | ||
VERSION = "10.0.0" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'active_record' | ||
require "active_record" | ||
require "active_record/connection_adapters" | ||
require "rgeo/active_record" | ||
ActiveRecord::ConnectionAdapters.register("postgis", "ActiveRecord::ConnectionAdapters::PostGISAdapter", "active_record/connection_adapters/postgis_adapter") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.