summaryrefslogtreecommitdiff
path: root/app/models/namespace_setting.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-16 15:09:38 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-16 15:09:38 +0000
commit2d8454515e7b631a8f39a6415c86154d6c62841c (patch)
treed3d5fac01f23a735226cf20a4073e2cb611664d3 /app/models/namespace_setting.rb
parent9d67bc14cb59a27c9877474e77d155173a1dedff (diff)
downloadgitlab-ce-2d8454515e7b631a8f39a6415c86154d6c62841c.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/namespace_setting.rb')
-rw-r--r--app/models/namespace_setting.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/namespace_setting.rb b/app/models/namespace_setting.rb
new file mode 100644
index 00000000000..53bfa3d979e
--- /dev/null
+++ b/app/models/namespace_setting.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class NamespaceSetting < ApplicationRecord
+ belongs_to :namespace, inverse_of: :namespace_settings
+
+ self.primary_key = :namespace_id
+end
+
+NamespaceSetting.prepend_if_ee('EE::NamespaceSetting')