X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ae23b3770a1df1e952265c2675c6b17e6c3060ba..7e5416c8d769fa6520dad72cd0612f1776d88219:/services/api/db/migrate/20141208174653_collection_file_names.rb diff --git a/services/api/db/migrate/20141208174653_collection_file_names.rb b/services/api/db/migrate/20141208174653_collection_file_names.rb index fdcd95f2bb..0aeb3d4ac1 100644 --- a/services/api/db/migrate/20141208174653_collection_file_names.rb +++ b/services/api/db/migrate/20141208174653_collection_file_names.rb @@ -7,7 +7,7 @@ class CollectionFileNames < ActiveRecord::Migration act_as_system_user do Collection.find_each(batch_size: 20) do |c| file_names = c.manifest_files - update_sql "UPDATE collections + ActiveRecord::Base.connection.execute "UPDATE collections SET file_names = #{ActiveRecord::Base.connection.quote(file_names)} WHERE uuid = '#{c.uuid}'" end