add_column :pipeline_instances, :components_summary, :text
end
+ PipelineInstance.reset_column_information
+
act_as_system_user do
PipelineInstance.all.each do |pi|
pi.state = PipelineInstance::New
if pi[:active] == true
pi.state = PipelineInstance::RunningOnServer
else
- if PipelineInstance.is_ready pi.components
+ if pi.components_look_ready?
pi.state = PipelineInstance::Ready
else
pi.state = PipelineInstance::New
end
end
+# We want to perform addition of state, and removal of active and success in two phases. Hence comment these statements out.
=begin
if column_exists?(:pipeline_instances, :active)
remove_column :pipeline_instances, :active
end
def down
+# We want to perform addition of state, and removal of active and success in two phases. Hence comment these statements out.
=begin
add_column :pipeline_instances, :success, :boolean, :null => true
add_column :pipeline_instances, :active, :boolean, :default => false