vendor/plugins/spatial_adapter/lib/spatial_adapter/schema_dumper.rb
# These are the valid options for a column specification (spatial options added)
These are the valid options for a column specification (spatial options added)
These are the valid options for a column specification ( spatial options added )
def indexes(table, stream)
    if (indexes = @connection.indexes(table)).any?
      add_index_statements = indexes.map do |index|
        statment_parts = [ ('add_index ' + index.table.inspect) ]
        statment_parts << index.columns.inspect
        statment_parts << (':name => ' + index.name.inspect)
        statment_parts << ':unique => true' if index.unique
        statment_parts << ':spatial => true' if index.spatial
        '  ' + statment_parts.join(', ')
      end
      stream.puts add_index_statements.sort.join("\n")
      stream.puts
    end
  end
def indexes ( table , stream ) if ( indexes = @connection . indexes ( table ) ) . any? add_index_statements = indexes . map do | index | statment_parts = [ ( 'add_index ' + index . table . inspect ) ] statment_parts << index . columns . inspect statment_parts << ( ':name => ' + index . name . inspect ) statment_parts << ':unique => true' if index . unique statment_parts << ':spatial => true' if index . spatial '  ' + statment_parts . join ( ', ' ) end stream . puts add_index_statements . sort . join ( "\n" ) stream . puts end end
These are the valid options for a column specification (spatial options added)
These are the valid options for a column specification ( spatial options added )
# Add spatial option (this is the only change from the original method)
table
stream