2019-11-28 10:06:57 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ImportFailure < ApplicationRecord
|
|
|
|
belongs_to :project
|
2020-01-17 16:08:29 -05:00
|
|
|
belongs_to :group
|
2019-11-28 10:06:57 -05:00
|
|
|
|
2020-01-17 16:08:29 -05:00
|
|
|
validates :project, presence: true, unless: :group
|
|
|
|
validates :group, presence: true, unless: :project
|
2019-11-28 10:06:57 -05:00
|
|
|
end
|