InventoryFile.where.not(inventory_file_name: nil).find_each do |file|
    file.attachment.attach(
      io: URI(Paperclip::Attachment.new(
        :inventory,
        file,