Commit 2ea95145 authored by Alexis Reigel's avatar Alexis Reigel

allow removal of gpg key by nullifying signatures

parent 9816856d
......@@ -4,6 +4,7 @@ class GpgKey < ActiveRecord::Base
KEY_PREFIX = '-----BEGIN PGP PUBLIC KEY BLOCK-----'.freeze
belongs_to :user
has_many :gpg_signatures, dependent: :nullify
validates :key,
presence: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment