aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120213131553_create_chouette_line.rb
blob: 51231a3fc65ae8e988eec995858b902090cdc29b (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
class CreateChouetteLine < ActiveRecord::Migration
  def up
    create_table "lines", :force => true do |t|
      t.integer  "network_id",                :limit => 8
      t.integer  "company_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   "number"
      t.string   "published_name"
      t.string   "transport_mode_name"
      t.string   "registration_number"
      t.string   "comment"
      t.boolean  "mobility_restricted_suitability"
      t.integer  "int_user_needs"
    end

    add_index "lines", ["objectid"], :name => "lines_objectid_key", :unique => true
    add_index "lines", ["registration_number"], :name => "lines_registration_number_key", :unique => true
  end

  def down    
  end
end