Module: ActiveRecord::ConnectionAdapters::PostGISAdapter

Defined in:
lib/active_record/connection_adapters/postgis_adapter.rb,
lib/active_record/connection_adapters/postgis_adapter/version.rb,
lib/active_record/connection_adapters/postgis_adapter/shared/setup.rb,
lib/active_record/connection_adapters/postgis_adapter/shared/railtie.rb,
lib/active_record/connection_adapters/postgis_adapter/rails4/main_adapter.rb,
lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_column.rb,
lib/active_record/connection_adapters/postgis_adapter/rails4/postgis_database_tasks.rb,
lib/active_record/connection_adapters/postgis_adapter/shared/common_adapter_methods.rb,
lib/active_record/connection_adapters/postgis_adapter/rails4/spatial_table_definition.rb

Overview

:nodoc:

Defined Under Namespace

Modules: CommonAdapterMethods, DecorateColumnsModification Classes: ColumnDefinition, MainAdapter, PostGISDatabaseTasks, Railtie, SpatialColumn, SpatialOID, TableDefinition

Constant Summary collapse

ADAPTER_NAME =

The name returned by the adapter_name method of this adapter.

'PostGIS'.freeze
VERSION =
"0.7.1".freeze
SPATIAL_COLUMN_CONSTRUCTORS =
::RGeo::ActiveRecord::DEFAULT_SPATIAL_COLUMN_CONSTRUCTORS.merge(
  :geography => {:type => 'geometry', :geographic => true}
)
DEFAULT_SRID =
0

Class Method Summary collapse

Class Method Details

.initial_setupObject



8
9
10
11
12
13
14
# File 'lib/active_record/connection_adapters/postgis_adapter/shared/setup.rb', line 8

def self.initial_setup
  gis_ignore_tables_ = ['geometry_columns', 'spatial_ref_sys', 'layer', 'topology']
  ignore_tables_ = ::ActiveRecord::SchemaDumper.ignore_tables
  gis_ignore_tables_.each do |table_|
    ignore_tables_ << table_ unless ignore_tables_.include?(table_)
  end
end