Sha256: 57d2a8ccb07cb32fcf38369d7da22dc4c3cee2bcb9c202b0668219469d360be6

Contents?: true

Size: 222 Bytes

Versions: 2

Compression:

Stored size: 222 Bytes

Contents

class CreatePhysicalRoadsSpatialIndex < ActiveRecord::Migration
  def up
    add_index :physical_roads, :geometry, :spatial => true
  end

  def down
    remove_index :physical_roads, :geometry, :spatial => true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_road-0.0.3 db/migrate/20120401083409_create_physical_roads_spatial_index.rb
active_road-0.0.2 db/migrate/20120401083409_create_physical_roads_spatial_index.rb