summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-16 20:29:21 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-05-16 20:29:21 +0000
commit60b14e52963238bb2401004350d963eda1fabef6 (patch)
tree4245a49a274608cae18039d87984570bad313e1f /app/models/user.rb
parentbd0a12be77840ca49cdd296e4a6d701df99024b4 (diff)
parent2060533f91b5527b568321f63a1aa7f4ef0081d5 (diff)
downloadgitlab-ce-60b14e52963238bb2401004350d963eda1fabef6.tar.gz
Merge branch 'jprovazn-remote-upload-destroy' into 'master'
Delete remote uploads Closes #45425 See merge request gitlab-org/gitlab-ce!18698
Diffstat (limited to 'app/models/user.rb')
-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 226a4489261..474fde36c02 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -17,6 +17,7 @@ class User < ActiveRecord::Base
include IgnorableColumn
include BulkMemberAccessLoad
include BlocksJsonSerialization
+ include WithUploads
DEFAULT_NOTIFICATION_LEVEL = :participating
@@ -137,7 +138,6 @@ class User < ActiveRecord::Base
has_many :custom_attributes, class_name: 'UserCustomAttribute'
has_many :callouts, class_name: 'UserCallout'
- has_many :uploads, as: :model, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent
has_many :term_agreements
belongs_to :accepted_term, class_name: 'ApplicationSetting::Term'