1 class CreateContainersAndRequests < ActiveRecord::Migration
3 create_table :containers do |t|
7 t.datetime :modified_at
8 t.string :modified_by_client_uuid
9 t.string :modified_by_user_uuid
11 t.datetime :started_at
12 t.datetime :finished_at
19 t.text :runtime_constraints
21 t.string :container_image
28 create_table :container_requests do |t|
31 t.datetime :created_at
32 t.datetime :modified_at
33 t.string :modified_by_client_uuid
34 t.string :modified_by_user_uuid
39 t.string :requesting_container_uuid
40 t.string :container_uuid
41 t.integer :container_count_max
43 t.text :runtime_constraints
44 t.string :container_image
50 t.datetime :expires_at
56 add_index :containers, :uuid, :unique => true
57 add_index :container_requests, :uuid, :unique => true