Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord-spatial/active_record/connection_adapters/postgresql/adapter_extensions.rb

Defined Under Namespace

Modules: OID

Instance Method Summary collapse

Instance Method Details

#geography_columns?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/activerecord-spatial/active_record/connection_adapters/postgresql/adapter_extensions.rb', line 29

def geography_columns?
  ActiveRecordSpatial::POSTGIS[:lib] >= '1.5'
end

#geometry_columns?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/activerecord-spatial/active_record/connection_adapters/postgresql/adapter_extensions.rb', line 25

def geometry_columns?
  true
end