diff --git a/test/support/mongoid.rb b/test/support/mongoid.rb index 33b57cd..6919fd4 100644 --- a/test/support/mongoid.rb +++ b/test/support/mongoid.rb @@ -86,7 +86,9 @@ class Agent field :name, type: String field :email_ciphertext, type: String + field :personal_email_ciphertext, type: String key_pair = Lockbox.generate_key_pair has_encrypted :email, algorithm: "hybrid", encryption_key: key_pair[:encryption_key] + has_encrypted :personal_email, algorithm: "hybrid", encryption_key: key_pair[:encryption_key], decryption_key: -> { nil } end