add job_task attributes
authorTom Clegg <tom@clinicalfuture.com>
Thu, 23 May 2013 06:03:14 +0000 (23:03 -0700)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 23 May 2013 06:03:14 +0000 (23:03 -0700)
services/api/app/models/job_task.rb
services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb [new file with mode: 0644]
services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb [new file with mode: 0644]
services/api/db/schema.rb

index 97672beba76b1edabaf90b2f1fd44b4a8fd69acf..be0456d5764bb8224806a2c1ebbd40315abf5d8b 100644 (file)
@@ -6,7 +6,9 @@ class JobTask < ArvadosModel
 
   api_accessible :superuser, :extend => :common do |t|
     t.add :job_uuid
+    t.add :created_by_job_task
     t.add :sequence
+    t.add :qsequence
     t.add :parameters
     t.add :output
     t.add :progress
diff --git a/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb b/services/api/db/migrate/20130523060112_add_created_by_job_task_to_job_tasks.rb
new file mode 100644 (file)
index 0000000..c3ce3d1
--- /dev/null
@@ -0,0 +1,5 @@
+class AddCreatedByJobTaskToJobTasks < ActiveRecord::Migration
+  def change
+    add_column :job_tasks, :created_by_job_task, :string
+  end
+end
diff --git a/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb b/services/api/db/migrate/20130523060213_add_qsequence_to_job_tasks.rb
new file mode 100644 (file)
index 0000000..a75a600
--- /dev/null
@@ -0,0 +1,5 @@
+class AddQsequenceToJobTasks < ActiveRecord::Migration
+  def change
+    add_column :job_tasks, :qsequence, :integer
+  end
+end
index ecb7ad6020ac75be4e6866d5430a3a721a1378b9..af64a56dba258640aaf6c804bcd6589416a839ec 100644 (file)
@@ -11,7 +11,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version => 20130425214427) do
+ActiveRecord::Schema.define(:version => 20130523060213) do
 
   create_table "api_client_authorizations", :force => true do |t|
     t.string   "api_token",               :null => false
@@ -120,6 +120,8 @@ ActiveRecord::Schema.define(:version => 20130425214427) do
     t.boolean  "success"
     t.datetime "created_at"
     t.datetime "updated_at"
+    t.string   "created_by_job_task"
+    t.integer  "qsequence"
   end
 
   add_index "job_tasks", ["created_at"], :name => "index_job_tasks_on_created_at"