summaryrefslogtreecommitdiff
path: root/app/models/protected_branch
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-05 13:10:42 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-29 15:20:39 +0530
commit21bece443d5f871680a3d7649c2d16861035196d (patch)
tree837e4669d5ca702cc5dd520e6c7ffbde54311d6d /app/models/protected_branch
parentf1e46d1e63faf63f1dc9960c5f28d5260dfc84db (diff)
downloadgitlab-ce-21bece443d5f871680a3d7649c2d16861035196d.tar.gz
Add models for the protected branch access levels.
- And hook up their associations.
Diffstat (limited to 'app/models/protected_branch')
-rw-r--r--app/models/protected_branch/merge_access_level.rb3
-rw-r--r--app/models/protected_branch/push_access_level.rb3
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/protected_branch/merge_access_level.rb b/app/models/protected_branch/merge_access_level.rb
new file mode 100644
index 00000000000..78cec5bf566
--- /dev/null
+++ b/app/models/protected_branch/merge_access_level.rb
@@ -0,0 +1,3 @@
+class ProtectedBranch::MergeAccessLevel < ActiveRecord::Base
+ belongs_to :protected_branch
+end
diff --git a/app/models/protected_branch/push_access_level.rb b/app/models/protected_branch/push_access_level.rb
new file mode 100644
index 00000000000..d53c4c391e3
--- /dev/null
+++ b/app/models/protected_branch/push_access_level.rb
@@ -0,0 +1,3 @@
+class ProtectedBranch::PushAccessLevel < ActiveRecord::Base
+ belongs_to :protected_branch
+end