diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-20 16:44:15 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:46:03 +0300 |
commit | 8e0c33ed1337e3614fe87d9d0c1eb64af90cc61a (patch) | |
tree | e41eff2b3d647de4062147b233e35719f2fa92e2 /app/models/gpg_key.rb | |
parent | 8c8a9e6d3fcb529e95d76dc9a7d4e37542a2036f (diff) |
use ShaAttribute for gpg table columns
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r-- | app/models/gpg_key.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb index 31a25f3e2f0..da2875a8851 100644 --- a/app/models/gpg_key.rb +++ b/app/models/gpg_key.rb @@ -1,6 +1,11 @@ class GpgKey < ActiveRecord::Base KEY_PREFIX = '-----BEGIN PGP PUBLIC KEY BLOCK-----'.freeze + include ShaAttribute + + sha_attribute :primary_keyid + sha_attribute :fingerprint + belongs_to :user has_many :gpg_signatures, dependent: :nullify |