debian-mirror-gitlab/app/models/resource_weight_event.rb
2020-04-08 18:37:08 +05:30

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