debian-mirror-gitlab/app/models/label_link.rb
2016-08-24 12:49:21 +05:30

9 lines
237 B
Ruby

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