diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-14 10:17:34 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:42:53 +0300 |
commit | 8236b12dff3df6d223888664c820ae54b4e0eaf7 (patch) | |
tree | 4ece75be33d55ca12173cb7b3162fe275a76958c /app/models/gpg_signature.rb | |
parent | 2f956fae0399f6f2eb370ed186c7bb4a9486178b (diff) |
gpg signature model for gpg verification caching
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r-- | app/models/gpg_signature.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb new file mode 100644 index 00000000000..03294354d91 --- /dev/null +++ b/app/models/gpg_signature.rb @@ -0,0 +1,7 @@ +class GpgSignature < ActiveRecord::Base + belongs_to :project + belongs_to :gpg_key + + validates :commit_sha, presence: true + validates :project, presence: true +end |