Skip to content
Snippets Groups Projects
Commit b43214c5 authored by Timothy Andrew's avatar Timothy Andrew
Browse files

Add a uniqueness constraint to `MergeRequestsClosingIssues`

parent 204419e9
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment