summaryrefslogtreecommitdiff
path: root/app/models/merge_requests_closing_issues.rb
blob: ab597c379471afa8becb49d0bcfaaa78137b8239 (plain)
1
2
3
4
5
6
7
class MergeRequestsClosingIssues < ActiveRecord::Base
  belongs_to :merge_request
  belongs_to :issue

  validates :merge_request_id, uniqueness: { scope: :issue_id }, presence: true
  validates :issue_id, presence: true
end