1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class CreateContainersAndRequests < ActiveRecord::Migration
7 create_table :containers do |t|
10 t.datetime :created_at
11 t.datetime :modified_at
12 t.string :modified_by_client_uuid
13 t.string :modified_by_user_uuid
15 t.datetime :started_at
16 t.datetime :finished_at
23 t.text :runtime_constraints
25 t.string :container_image
32 create_table :container_requests do |t|
35 t.datetime :created_at
36 t.datetime :modified_at
37 t.string :modified_by_client_uuid
38 t.string :modified_by_user_uuid
43 t.string :requesting_container_uuid
44 t.string :container_uuid
45 t.integer :container_count_max
47 t.text :runtime_constraints
48 t.string :container_image
54 t.datetime :expires_at
60 add_index :containers, :uuid, :unique => true
61 add_index :container_requests, :uuid, :unique => true