diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-19 21:24:05 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-11-19 21:24:05 +0300 |
commit | 95c23b2f974ec15e89cd7e762c80af0fa0ce57a5 (patch) | |
tree | f37af5b6d4c92f9733298b6894dd6f24057e9cae /app/models/key.rb | |
parent | c3b074acab554fc40a8fcb6060ed7ab10e4171a4 (diff) | |
download | gitlab-ce-95c23b2f974ec15e89cd7e762c80af0fa0ce57a5.tar.gz |
Annotated. schema updated
Diffstat (limited to 'app/models/key.rb')
-rw-r--r-- | app/models/key.rb | 29 |
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 -# - |