summaryrefslogtreecommitdiff
path: root/app/models/bulk_imports/failure.rb
blob: a6f7582c3b003868ff2734e0882a8e01c5e823ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class BulkImports::Failure < ApplicationRecord
  self.table_name = 'bulk_import_failures'

  belongs_to :entity,
    class_name: 'BulkImports::Entity',
    foreign_key: :bulk_import_entity_id,
    inverse_of: :failures,
    optional: false

  validates :entity, presence: true
end