X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/05729d26f0d71620bb7151b443f628a92d3ec78d..3facf89bf048487ee718fe15d012b489f2d407b7:/services/api/db/migrate/20180917205609_recompute_file_names_index.rb diff --git a/services/api/db/migrate/20180917205609_recompute_file_names_index.rb b/services/api/db/migrate/20180917205609_recompute_file_names_index.rb index 3dbc0ec3df..b321422143 100644 --- a/services/api/db/migrate/20180917205609_recompute_file_names_index.rb +++ b/services/api/db/migrate/20180917205609_recompute_file_names_index.rb @@ -1,4 +1,8 @@ -class RecomputeFileNamesIndex < ActiveRecord::Migration +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class RecomputeFileNamesIndex < ActiveRecord::Migration[4.2] def do_batch(pdhs:) ActiveRecord::Base.connection.exec_query('BEGIN') Collection.select(:portable_data_hash, :manifest_text).where(portable_data_hash: pdhs).distinct(:portable_data_hash).each do |c|