|script_name|string|Name of MapReduce script||
|script_parameters{}|list|Parameters passed to MapReduce script||
|script_version|string|git commit/tree used when running the job|If the job has not started, this can be a tag/branch instead of an unambiguous commit id.|
-|cancelled_by_client|string|API client ID|Is null if job has not been cancelled|
-|cancelled_by_user|string|Authenticated user ID|Is null if job has not been cancelled|
+|cancelled_by_client_uuid|string|API client ID|Is null if job has not been cancelled|
+|cancelled_by_user_uuid|string|Authenticated user ID|Is null if job has not been cancelled|
|cancelled_at|string|When job was cancelled|Is null if job has not been cancelled|
|started_at|datetime|When job started running|Is null if job has not [yet] started|
|finished_at|datetime|When job finished running|Is null if job has not [yet] finished|
t.add :script_parameters
t.add :script_version
t.add :cancelled_at
- t.add :cancelled_by_client
- t.add :cancelled_by_user
+ t.add :cancelled_by_client_uuid
+ t.add :cancelled_by_user_uuid
t.add :started_at
t.add :finished_at
t.add :output
--- /dev/null
+class RenameJobForeignUuidAttributes < ActiveRecord::Migration
+ def change
+ rename_column :jobs, :cancelled_by_client, :cancelled_by_client_uuid
+ rename_column :jobs, :cancelled_by_user, :cancelled_by_user_uuid
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130708163414) do
+ActiveRecord::Schema.define(:version => 20130708182912) do
create_table "api_client_authorizations", :force => true do |t|
t.string "api_token", :null => false
t.string "script"
t.string "script_version"
t.text "script_parameters"
- t.string "cancelled_by_client"
- t.string "cancelled_by_user"
+ t.string "cancelled_by_client_uuid"
+ t.string "cancelled_by_user_uuid"
t.datetime "cancelled_at"
t.datetime "started_at"
t.datetime "finished_at"