1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class CreateJobs < ActiveRecord::Migration[4.2]
7 create_table :jobs do |t|
10 t.string :modified_by_client
11 t.string :modified_by_user
12 t.datetime :modified_at
15 t.string :command_version
16 t.text :command_parameters
17 t.string :cancelled_by_client
18 t.string :cancelled_by_user
19 t.datetime :cancelled_at
20 t.datetime :started_at
21 t.datetime :finished_at
28 add_index :jobs, :uuid, :unique => true
29 add_index :jobs, :submit_id, :unique => true
30 add_index :jobs, :command
31 add_index :jobs, :finished_at
32 add_index :jobs, :started_at
33 add_index :jobs, :output