BigW Consortium Gitlab

label_link.rb 237 Bytes
Newer Older
1
class LabelLink < ActiveRecord::Base
2 3
  include Importable

4 5 6
  belongs_to :target, polymorphic: true
  belongs_to :label

7 8
  validates :target, presence: true, unless: :importing?
  validates :label, presence: true, unless: :importing?
9
end