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

9 lines
193 B
Ruby

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