merge_requests_closing_issues.rb 240 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 class MergeRequestsClosingIssues < ActiveRecord::Base belongs_to :merge_request belongs_to :issue validates_uniqueness_of :merge_request_id, scope: :issue_id validates_presence_of :merge_request validates_presence_of :issue end