8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20130122201442_create_logs.rb
1 class CreateLogs < ActiveRecord::Migration
2   def up
3     create_table :logs do |t|
4       t.string :uuid
5       t.string :created_by_client
6       t.string :created_by_user
7       t.string :modified_by_client
8       t.string :modified_by_user
9       t.string :object_kind
10       t.string :object_uuid
11       t.datetime :event_at
12       t.string :event_type
13       t.text :summary
14       t.text :info
15
16       t.timestamps
17     end
18     add_index :logs, :uuid, :unique => true
19     add_index :logs, :object_kind
20     add_index :logs, :object_uuid
21     add_index :logs, :event_type
22     add_index :logs, :event_at
23     add_index :logs, :summary
24   end
25
26   def down
27     drop_table :logs  end
28 end