Sha256: 82d936ba949648c0dfc264c5cf798ea343c144d13dc764f35a2b3f35447b8bdf

Contents?: true

Size: 1.82 KB

Versions: 2

Compression:

Stored size: 1.82 KB

Contents

require File.dirname(__FILE__) + '/../common/common_postgis.rb'

#add some postgis specific tables
ActiveRecord::Schema.define() do

  create_table "table_points", :force => true do |t|
    t.string "data"
    t.point "geom", :null=>false
  end

  create_table "table_keyword_column_points", :force => true do |t|
    t.point "location", :null => false
  end

  create_table "table_line_strings", :force => true do |t|
    t.integer "value"
    t.line_string "geom", :null=>false
  end
  
  create_table "table_polygons", :force => true do |t|
    t.polygon "geom", :null=>false
  end

  create_table "table_multi_points", :force => true do |t|
    t.multi_point "geom", :null=>false
  end
  
  create_table "table_multi_line_strings", :force => true do |t|
    t.multi_line_string "geom", :null=>false
  end

  create_table "table_multi_polygons", :force => true do |t|
    t.multi_polygon "geom", :null=>false
  end

  create_table "table_geometries", :force => true do |t|
    t.geometry "geom", :null=>false
  end

  create_table "table_geometry_collections", :force => true do |t|
    t.geometry_collection "geom", :null=>false
  end

  create_table "table3dz_points", :force => true do |t|
    t.column "data", :string
    t.point "geom", :null => false , :with_z => true
  end

  create_table "table3dm_points", :force => true do |t|
    t.point "geom", :null => false , :with_m => true
  end

  create_table "table4d_points", :force => true do |t|
    t.point "geom", :null => false, :with_m => true, :with_z => true
  end

   create_table "table_srid_line_strings", :force => true do |t|
    t.line_string "geom", :null => false , :srid => 123
  end

  create_table "table_srid4d_polygons", :force => true do |t|
    t.polygon "geom", :with_m => true, :with_z => true, :srid => 123
  end
 
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
GeoRuby-1.3.3 tools/lib/spatial_adapter/test/schema/schema_postgis.rb
GeoRuby-1.3.4 tools/lib/spatial_adapter/test/schema/schema_postgis.rb