diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-06 16:42:45 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-06 16:42:45 +0300 |
commit | d919f924bf32220237c389dc913093efead8928c (patch) | |
tree | beb756b9eecc2b3eaa78a4fd302bb50aa0cc2d7f /app/models | |
parent | 34f925fe0bebdc7212c1c960678114a4e44828ef (diff) |
Backport https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1942
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 9ed42d6b6f5..5d128e4b390 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -66,7 +66,7 @@ class User < ActiveRecord::Base # # Namespace for personal projects - has_one :namespace, -> { where type: nil }, dependent: :destroy, foreign_key: :owner_id + has_one :namespace, -> { where type: nil }, dependent: :destroy, foreign_key: :owner_id, autosave: true # Profile has_many :keys, -> do |