module ActiveRecord::ConnectionAdapters::Mysql2Rgeo::ColumnDefinitionUtils

Public Class Methods

default_srid(options) click to toggle source
# File lib/active_record/connection_adapters/mysql2rgeo/spatial_table_definition.rb, line 33
def default_srid(options)
  options[:geographic] ? 4326 : Mysql2RgeoAdapter::DEFAULT_SRID
end
geo_type(type = "GEOMETRY") click to toggle source
# File lib/active_record/connection_adapters/mysql2rgeo/spatial_table_definition.rb, line 29
def geo_type(type = "GEOMETRY")
  type.to_s.delete("_").upcase
end