debian-mirror-gitlab/app/models/import_failure.rb

10 lines
224 B
Ruby
Raw Normal View History

2020-01-01 13:55:28 +05:30
# frozen_string_literal: true
class ImportFailure < ApplicationRecord
belongs_to :project
2020-03-13 15:44:24 +05:30
belongs_to :group
2020-01-01 13:55:28 +05:30
2020-03-13 15:44:24 +05:30
validates :project, presence: true, unless: :group
validates :group, presence: true, unless: :project
2020-01-01 13:55:28 +05:30
end