aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120525092211_create_chouette_facility.rb
blob: 9f4cb2848e939874e21bf93d4151435fbc48e455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class CreateChouetteFacility < ActiveRecord::Migration
  def up
    create_table :facilities, :force => true do |t|
      t.integer  "stop_area_id",      :limit => 8
      t.integer  "line_id",          :limit => 8
      t.integer  "connection_link_id",:limit => 8
      t.integer  "stop_point_id",     :limit => 8

      t.string   "objectid", :null => false
      t.integer  "object_version"
      t.datetime "creation_time"
      t.string   "creator_id"

      t.string   "name"
      t.string   "comment"
      t.string   "description"
      t.boolean  "free_access"
      t.decimal  "longitude",      :precision => 19, :scale => 16
      t.decimal  "latitude",       :precision => 19, :scale => 16
      t.string   "long_lat_type"
      t.decimal  "x",              :precision => 19, :scale => 2
      t.decimal  "y",              :precision => 19, :scale => 2
      t.string   "projection_type"
      t.string   "country_code"
      t.string   "street_name"
      t.string   "contained_in"
    end
   add_index "facilities", ["objectid"], :name => "facilities_objectid_key", :unique => true
  end

  def down
    drop_table :facilities
  end
end