X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4707d4ab4a998a2af2a489141393fc4e793ee89..d05ce2853bafa4a23314813c8d7cb32c4162a0b4:/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 e6860964bb..b321422143 100644 --- a/services/api/db/migrate/20180917205609_recompute_file_names_index.rb +++ b/services/api/db/migrate/20180917205609_recompute_file_names_index.rb @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0 -class RecomputeFileNamesIndex < ActiveRecord::Migration +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|