Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20170105160302_set_finished_at_on_finished_pipeline_instances.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class SetFinishedAtOnFinishedPipelineInstances < ActiveRecord::Migration
6   def change
7     ActiveRecord::Base.connection.execute("update pipeline_instances set finished_at=updated_at where finished_at is null and (state='Failed' or state='Complete')")
8   end
9 end