From: Tom Clegg Date: Mon, 18 Feb 2013 18:16:13 +0000 (-0800) Subject: add PipelineInvocation#properties X-Git-Tag: 1.1.0~3432 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/0a5030a04b9b149537912cc0947e5f407f1abb40 add PipelineInvocation#properties --- diff --git a/app/controllers/orvos/v1/pipeline_invocations_controller.rb b/app/controllers/orvos/v1/pipeline_invocations_controller.rb index 2b9738efbc..7e4fe3c7a4 100644 --- a/app/controllers/orvos/v1/pipeline_invocations_controller.rb +++ b/app/controllers/orvos/v1/pipeline_invocations_controller.rb @@ -1,3 +1,4 @@ class Orvos::V1::PipelineInvocationsController < ApplicationController accept_attribute_as_json :components, Hash + accept_attribute_as_json :properties, Hash end diff --git a/app/models/pipeline_invocation.rb b/app/models/pipeline_invocation.rb index c355056d34..32e8a4f57a 100644 --- a/app/models/pipeline_invocation.rb +++ b/app/models/pipeline_invocation.rb @@ -3,6 +3,7 @@ class PipelineInvocation < OrvosModel include KindAndEtag include CommonApiTemplate serialize :components, Hash + serialize :properties, Hash belongs_to :pipeline, :foreign_key => :pipeline_uuid, :primary_key => :uuid attr_accessor :pipeline diff --git a/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb b/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb new file mode 100644 index 0000000000..62bb5923d2 --- /dev/null +++ b/db/migrate/20130218181504_add_properties_to_pipeline_invocations.rb @@ -0,0 +1,5 @@ +class AddPropertiesToPipelineInvocations < ActiveRecord::Migration + def change + add_column :pipeline_invocations, :properties, :text + end +end diff --git a/db/schema.rb b/db/schema.rb index 96fcd59798..70307e1e3c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130207195855) do +ActiveRecord::Schema.define(:version => 20130218181504) do create_table "api_client_authorizations", :force => true do |t| t.string "api_token", :null => false @@ -211,6 +211,7 @@ ActiveRecord::Schema.define(:version => 20130207195855) do t.boolean "success" t.boolean "active", :default => false t.datetime "updated_at" + t.text "properties" end add_index "pipeline_invocations", ["created_at"], :name => "index_pipeline_invocations_on_created_at"