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