blob: ed58f22e1afcf021e3b9edb21ca75d2fb5fb8dcc (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | class CreateChouetteTimeSlot < ActiveRecord::Migration
  def up
    create_table :time_slots, :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.time "beginning_slot_time"
      t.time "end_slot_time"
      t.time "first_departure_time_in_slot"
      t.time "last_departure_time_in_slot"
    end
   add_index "time_slots", ["objectid"], :name => "time_slots_objectid_key", :unique => true
  end
  def down
   remove_index "time_slots", :name => "time_slots_objectid_key"
   drop_table :time_slots
  end
end
 |