summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayson Salazar <mail@jdsalaro.com>2021-06-17 11:36:28 +0000
committerJayson Salazar <mail@jdsalaro.com>2021-06-17 11:36:28 +0000
commit2ce8e745bdb02566d2bb676d171740672f8e7307 (patch)
treeef633d8cb5e446918152be6c901c4b8ee5695fd4
parent612bb6f624ea7fdf5fd20e3332d543191603db88 (diff)
downloadgitlab-ce-jdsalaro-master-patch-73125.tar.gz
Update app/models/user.rbjdsalaro-master-patch-73125
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 5fbd6271589..14f1ed711bb 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -174,7 +174,7 @@ class User < ApplicationRecord
has_many :oauth_applications, class_name: 'Doorkeeper::Application', as: :owner, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
has_one :abuse_report, dependent: :destroy, foreign_key: :user_id # rubocop:disable Cop/ActiveRecordDependent
has_many :reported_abuse_reports, dependent: :destroy, foreign_key: :reporter_id, class_name: "AbuseReport" # rubocop:disable Cop/ActiveRecordDependent
- has_many :spam_logs, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
+ has_many :spam_logs,
has_many :builds, dependent: :nullify, class_name: 'Ci::Build' # rubocop:disable Cop/ActiveRecordDependent
has_many :pipelines, dependent: :nullify, class_name: 'Ci::Pipeline' # rubocop:disable Cop/ActiveRecordDependent
has_many :todos