Sha256: a4e592a5eca7ee46515de478972f1637ad69a55edd795428387cc5f1637a79a7

Contents?: true

Size: 289 Bytes

Versions: 11

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

module Bulkrax
  class ImporterRun < ApplicationRecord
    belongs_to :importer
    has_many :statuses, as: :runnable, dependent: :destroy

    def parents
      PendingRelationship.where(bulkrax_importer_run_id: id).pluck(:parent_id).uniq
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bulkrax-3.3.0 app/models/bulkrax/importer_run.rb
bulkrax-3.2.0 app/models/bulkrax/importer_run.rb
bulkrax-3.1.2 app/models/bulkrax/importer_run.rb
bulkrax-3.1.1 app/models/bulkrax/importer_run.rb
bulkrax-3.1.0 app/models/bulkrax/importer_run.rb
bulkrax-3.0.1 app/models/bulkrax/importer_run.rb
bulkrax-3.0.0 app/models/bulkrax/importer_run.rb
bulkrax-3.0.0.beta8 app/models/bulkrax/importer_run.rb
bulkrax-3.0.0.beta7 app/models/bulkrax/importer_run.rb
bulkrax-3.0.0.beta6 app/models/bulkrax/importer_run.rb
bulkrax-3.0.0.beta5 app/models/bulkrax/importer_run.rb