diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-20 15:44:15 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:46:03 +0200 |
commit | 8e0c33ed1337e3614fe87d9d0c1eb64af90cc61a (patch) | |
tree | e41eff2b3d647de4062147b233e35719f2fa92e2 /app/models/gpg_signature.rb | |
parent | 8c8a9e6d3fcb529e95d76dc9a7d4e37542a2036f (diff) | |
download | gitlab-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.rb | 5 |
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 |