Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 22:24:05 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-19 22:24:05 +0400
commit95c23b2f974ec15e89cd7e762c80af0fa0ce57a5 (patch)
treef37af5b6d4c92f9733298b6894dd6f24057e9cae /app/models/key.rb
parentc3b074acab554fc40a8fcb6060ed7ab10e4171a4 (diff)
Annotated. schema updated
Diffstat (limited to 'app/models/key.rb')
-rw-r--r--app/models/key.rb29
1 files changed, 14 insertions, 15 deletions
diff --git a/app/models/key.rb b/app/models/key.rb
index e4710b85b14..5dac1c1c9fd 100644
--- a/app/models/key.rb
+++ b/app/models/key.rb
@@ -1,3 +1,17 @@
+# == Schema Information
+#
+# Table name: keys
+#
+# id :integer not null, primary key
+# user_id :integer
+# created_at :datetime not null
+# updated_at :datetime not null
+# key :text
+# title :string(255)
+# identifier :string(255)
+# project_id :integer
+#
+
require 'digest/md5'
class Key < ActiveRecord::Base
@@ -67,18 +81,3 @@ class Key < ActiveRecord::Base
Key.where(identifier: identifier).count == 0
end
end
-
-# == Schema Information
-#
-# Table name: keys
-#
-# id :integer not null, primary key
-# user_id :integer
-# created_at :datetime not null
-# updated_at :datetime not null
-# key :text
-# title :string(255)
-# identifier :string(255)
-# project_id :integer
-#
-