Sha256: 529f8110d2f2e25d3de58596f70310b5afa9af4ab4b756eb5f811c810551137a

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

class CreateBoundaries < ActiveRecord::Migration

  def change
    create_table :boundaries do |t|
      t.string :objectid
      t.string :name
      t.integer :admin_level
      t.string :postal_code
      t.string :insee_code
      t.multi_polygon :geometry, :srid => ActiveRoad.srid
    end
    
    add_index :boundaries, :geometry, :spatial => true
  end
     
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_road-0.0.3 db/migrate/20140206091734_create_boundaries.rb