summaryrefslogtreecommitdiff
path: root/app/models/import_export_upload.rb
blob: 40795d7c42f54005004f3c741f17ccb2835884fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ImportExportUpload < ActiveRecord::Base
  include WithUploads
  include ObjectStorage::BackgroundMove

  belongs_to :project

  mount_uploader :import_file, ImportExportUploader
  mount_uploader :export_file, ImportExportUploader

  def retrieve_upload(_identifier, paths)
    Upload.find_by(model: self, path: paths)
  end
end