提交 2ea95145 编写于 作者: A Alexis Reigel

allow removal of gpg key by nullifying signatures

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册