summaryrefslogtreecommitdiff
path: root/app/models/deploy_key.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-19 15:40:33 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-19 15:40:33 +0300
commit6e35aceff29ddeae6282de31e81e48446ab927fa (patch)
tree34e777e35797f2d55ce82a3e807323523dda74be /app/models/deploy_key.rb
parent78680a81774d67997fa0abece4dc1d4a5ec12ce6 (diff)
downloadgitlab-ce-6e35aceff29ddeae6282de31e81e48446ab927fa.tar.gz
Annotated
Diffstat (limited to 'app/models/deploy_key.rb')
-rw-r--r--app/models/deploy_key.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/models/deploy_key.rb b/app/models/deploy_key.rb
index 548ef4f9a27..f983198085c 100644
--- a/app/models/deploy_key.rb
+++ b/app/models/deploy_key.rb
@@ -1,3 +1,17 @@
+# == Schema Information
+#
+# Table name: keys
+#
+# id :integer not null, primary key
+# user_id :integer
+# created_at :datetime
+# updated_at :datetime
+# key :text
+# title :string(255)
+# identifier :string(255)
+# type :string(255)
+#
+
class DeployKey < Key
has_many :deploy_keys_projects, dependent: :destroy
has_many :projects, through: :deploy_keys_projects