14873: Adjusts latest API Server changes to be rails5 worthy.
[arvados.git] / services / api / db / migrate / 20180917205609_recompute_file_names_index.rb
index e6860964bbf6836a8ecdda3d3f91a4b6383ac691..b321422143b9e7df21ed6c7cfb55a3193ba6ca80 100644 (file)
@@ -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|