diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-25 22:20:48 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:46:04 +0300 |
commit | fef030c23dff6f3b11b0e6bfd4c9443106375de1 (patch) | |
tree | 3da1d4d13a872ba55f71914fcc1ba2b5893bbe32 /app/models/gpg_signature.rb | |
parent | a5f04df8d76d7c3c4318820fc3053a9823143dba (diff) |
validate the foreign_key instead of the relation
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r-- | app/models/gpg_signature.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb index cb69106183d..1ac0e123ff1 100644 --- a/app/models/gpg_signature.rb +++ b/app/models/gpg_signature.rb @@ -8,7 +8,7 @@ class GpgSignature < ActiveRecord::Base belongs_to :gpg_key validates :commit_sha, presence: true - validates :project, presence: true + validates :project_id, presence: true validates :gpg_key_primary_keyid, presence: true def gpg_key_primary_keyid |