debian-mirror-gitlab/app/models/resource_weight_event.rb

10 lines
193 B
Ruby
Raw Normal View History

2020-03-09 13:42:32 +05:30
# frozen_string_literal: true
2020-04-08 14:13:33 +05:30
class ResourceWeightEvent < ResourceEvent
2020-03-09 13:42:32 +05:30
validates :issue, presence: true
belongs_to :issue
scope :by_issue, ->(issue) { where(issue_id: issue.id) }
end