BigW Consortium Gitlab

merge_requests_closing_issues.rb 225 Bytes
Newer Older
1 2 3
class MergeRequestsClosingIssues < ActiveRecord::Base
  belongs_to :merge_request
  belongs_to :issue
4

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