summaryrefslogtreecommitdiff
path: root/app/models/milestone_release.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/milestone_release.rb')
-rw-r--r--app/models/milestone_release.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/milestone_release.rb b/app/models/milestone_release.rb
index c8743a8cad8..f7127df339d 100644
--- a/app/models/milestone_release.rb
+++ b/app/models/milestone_release.rb
@@ -4,9 +4,11 @@ class MilestoneRelease < ApplicationRecord
belongs_to :milestone
belongs_to :release
- validates :milestone_id, uniqueness: { scope: [:release_id] }
validate :same_project_between_milestone_and_release
+ # Keep until 2019-11-29
+ self.ignored_columns += %i[id]
+
private
def same_project_between_milestone_and_release