module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::SchemaCreation
Constants
- POSTGIS_SPATIAL_TYPES
Private Instance Methods
add_column_options!(sql, options)
click to toggle source
Calls superclass method
# File lib/postgres_ext/postgis/active_record/connection_adapters/postgresql/schema_statements.rb, line 4 def add_column_options!(sql, options) if spatial_type_option = options[:spatial_type] || options[:column].try(:spatial_type) srid = options[:srid] || options[:column].try(:srid) sql << "(#{postgis_spatial_type spatial_type_option}, #{srid})" end super end
postgis_spatial_type(option)
click to toggle source
# File lib/postgres_ext/postgis/active_record/connection_adapters/postgresql/schema_statements.rb, line 13 def postgis_spatial_type(option) POSTGIS_SPATIAL_TYPES[option] end