Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition
- Inherits:
-
TableDefinition
- Object
- TableDefinition
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::TableDefinition
- Includes:
- ColumnMethods
- Defined in:
- lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_definitions.rb
Instance Method Summary collapse
Methods included from ColumnMethods
Instance Method Details
#column_with_spatial(name, type = nil, options = {}) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/activerecord-postgres-postgis/active_record/connection_adapters/schema_definitions.rb', line 35 def column_with_spatial(name, type = nil, = {}) column = column_without_spatial(name, type, )[name] column.spatial_type = [:spatial_type] column.srid = [:srid] self end |