BigW Consortium Gitlab

label_link.rb 173 Bytes
Newer Older
1 2 3 4 5 6 7
class LabelLink < ActiveRecord::Base
  belongs_to :target, polymorphic: true
  belongs_to :label

  validates :target, presence: true
  validates :label, presence: true
end