X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..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 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|