aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20120214101458_create_chouette_company.rb
blob: c72a73d9b3195eec10fc39c688f792e7c8ff4d01 (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
class CreateChouetteCompany < ActiveRecord::Migration
  def up
    create_table "companies", :force => true do |t|
      t.string   "objectid", :null => false
      t.integer  "object_version"
      t.datetime "creation_time"
      t.string   "creator_id"
      t.string   "name"
      t.string   "short_name"
      t.string   "organizational_unit"
      t.string   "operating_department_name"
      t.string   "code"
      t.string   "phone"
      t.string   "fax"
      t.string   "email"
      t.string   "registration_number"
    end

    add_index "companies", ["objectid"], :name => "companies_objectid_key", :unique => true
    add_index "companies", ["registration_number"], :name => "companies_registration_number_key", :unique => true
  end

  def down
  end
end