diff options
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 8de717fb61d..eb0da368c7b 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -134,7 +134,9 @@ class Milestone < ApplicationRecord end def participants - User.joins(assigned_issues: :milestone).where(milestones: { id: id }).distinct + User.joins(assigned_issues: :milestone) + .allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/422155') + .where(milestones: { id: id }).distinct end def self.sort_by_attribute(method) |