Welcome to mirror list, hosted at ThFree Co, Russian Federation.

label_link.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 51b5c2b1f4c5bac104c136ef3c645dbd24f41657 (plain)
1
2
3
4
5
6
7
8
9
class LabelLink < ActiveRecord::Base
  include Importable

  belongs_to :target, polymorphic: true
  belongs_to :label

  validates :target, presence: true, unless: :importing?
  validates :label, presence: true, unless: :importing?
end