summaryrefslogtreecommitdiff
path: root/spec/services/milestones
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-11-14 16:58:56 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2017-11-20 12:45:33 +0100
commit936e9e895000c9f9ae39713c969b325f6b59c0c3 (patch)
tree344efe089e606db31edea70a63140162a9c5e78b /spec/services/milestones
parent202ab62874bb3d828ab48017550660d461e8cf6b (diff)
downloadgitlab-ce-936e9e895000c9f9ae39713c969b325f6b59c0c3.tar.gz
Clean up schema of the "merge_requests" table
This adds various foreign keys and indexes to the "merge_requests" table as outlined in https://gitlab.com/gitlab-org/gitlab-ce/issues/31825. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/31825
Diffstat (limited to 'spec/services/milestones')
-rw-r--r--spec/services/milestones/destroy_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/milestones/destroy_service_spec.rb b/spec/services/milestones/destroy_service_spec.rb
index 16e288b3148..af35e17bfa7 100644
--- a/spec/services/milestones/destroy_service_spec.rb
+++ b/spec/services/milestones/destroy_service_spec.rb
@@ -5,7 +5,7 @@ describe Milestones::DestroyService do
let(:project) { create(:project) }
let(:milestone) { create(:milestone, title: 'Milestone v1.0', project: project) }
let!(:issue) { create(:issue, project: project, milestone: milestone) }
- let(:merge_request) { create(:merge_request, source_project: project, milestone: milestone) }
+ let!(:merge_request) { create(:merge_request, source_project: project, milestone: milestone) }
before do
project.team << [user, :master]