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