1 class CreateJobs < ActiveRecord::Migration
3 create_table :jobs do |t|
6 t.string :modified_by_client
7 t.string :modified_by_user
8 t.datetime :modified_at
11 t.string :command_version
12 t.text :command_parameters
13 t.string :cancelled_by_client
14 t.string :cancelled_by_user
15 t.datetime :cancelled_at
16 t.datetime :started_at
17 t.datetime :finished_at
24 add_index :jobs, :uuid, :unique => true
25 add_index :jobs, :submit_id, :unique => true
26 add_index :jobs, :command
27 add_index :jobs, :finished_at
28 add_index :jobs, :started_at
29 add_index :jobs, :output