8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20151202151426_create_containers_and_requests.rb
1 class CreateContainersAndRequests < ActiveRecord::Migration
2   def change
3     create_table :containers do |t|
4       t.string :uuid
5       t.string :owner_uuid
6       t.datetime :created_at
7       t.datetime :modified_at
8       t.string :modified_by_client_uuid
9       t.string :modified_by_user_uuid
10       t.string :state
11       t.datetime :started_at
12       t.datetime :finished_at
13       t.string :log
14       t.text :environment
15       t.string :cwd
16       t.text :command
17       t.string :output_path
18       t.text :mounts
19       t.text :runtime_constraints
20       t.string :output
21       t.string :container_image
22       t.float :progress
23       t.integer :priority
24
25       t.timestamps
26     end
27
28     create_table :container_requests do |t|
29       t.string :uuid
30       t.string :owner_uuid
31       t.datetime :created_at
32       t.datetime :modified_at
33       t.string :modified_by_client_uuid
34       t.string :modified_by_user_uuid
35       t.string :name
36       t.text :description
37       t.text :properties
38       t.string :state
39       t.string :requesting_container_uuid
40       t.string :container_uuid
41       t.integer :container_count_max
42       t.text :mounts
43       t.text :runtime_constraints
44       t.string :container_image
45       t.text :environment
46       t.string :cwd
47       t.text :command
48       t.string :output_path
49       t.integer :priority
50       t.datetime :expires_at
51       t.text :filters
52
53       t.timestamps
54     end
55
56     add_index :containers, :uuid, :unique => true
57     add_index :container_requests, :uuid, :unique => true
58   end
59 end