module PostgresExt::Postgis::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition
Public Instance Methods
column(name, type, options = {})
click to toggle source
Calls superclass method
# File lib/postgres_ext/postgis/active_record/connection_adapters/postgresql_adapter.rb, line 45 def column(name, type, options = {}) super column = self[name] if type.to_s == 'geometry' column.srid = options[:srid] column.spatial_type = options[:spatial_type] end self end
new_column_definition(name, type, options)
click to toggle source
Calls superclass method
# File lib/postgres_ext/postgis/active_record/connection_adapters/postgresql_adapter.rb, line 57 def new_column_definition(name, type, options) column = super column.srid = options[:srid] column.spatial_type = options[:spatial_type] column end