diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-20 17:33:44 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:46:03 +0300 |
commit | 57ccff8ea41aa2366f40b29187d3b8d1217264e0 (patch) | |
tree | 720c3a7457fffa96d9985bf004f303d57ff839fb /app/models/gpg_key.rb | |
parent | 786b5a5991930bb838767a4ed6eed2a67e517e82 (diff) |
use db's on_delete instead of has_many :dependent
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r-- | app/models/gpg_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb index da2875a8851..47ebfc9d234 100644 --- a/app/models/gpg_key.rb +++ b/app/models/gpg_key.rb @@ -7,7 +7,7 @@ class GpgKey < ActiveRecord::Base sha_attribute :fingerprint belongs_to :user - has_many :gpg_signatures, dependent: :nullify + has_many :gpg_signatures validates :user, presence: true |