2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ImportFailure < ApplicationRecord
|
|
|
|
belongs_to :project
|
2020-03-09 13:42:32 +05:30
|
|
|
belongs_to :group
|
2020-01-01 13:55:28 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
validates :project, presence: true, unless: :group
|
|
|
|
validates :group, presence: true, unless: :project
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|