gitlab-org--gitlab-foss/app/models/resource_weight_event.rb

10 lines
193 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ResourceWeightEvent < ResourceEvent
validates :issue, presence: true
belongs_to :issue
scope :by_issue, ->(issue) { where(issue_id: issue.id) }
end