summaryrefslogtreecommitdiff
path: root/app/models/gpg_signature.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-20 15:44:15 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:46:03 +0200
commit8e0c33ed1337e3614fe87d9d0c1eb64af90cc61a (patch)
treee41eff2b3d647de4062147b233e35719f2fa92e2 /app/models/gpg_signature.rb
parent8c8a9e6d3fcb529e95d76dc9a7d4e37542a2036f (diff)
downloadgitlab-ce-8e0c33ed1337e3614fe87d9d0c1eb64af90cc61a.tar.gz
use ShaAttribute for gpg table columns
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r--app/models/gpg_signature.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb
index 0ef335bf8a9..9ac89f0bbbf 100644
--- a/app/models/gpg_signature.rb
+++ b/app/models/gpg_signature.rb
@@ -1,4 +1,9 @@
class GpgSignature < ActiveRecord::Base
+ include ShaAttribute
+
+ sha_attribute :commit_sha
+ sha_attribute :gpg_key_primary_keyid
+
belongs_to :project
belongs_to :gpg_key