From c78de1246d465ff27656b03663b8246755207318 Mon Sep 17 00:00:00 2001 From: Ian Perera Date: Wed, 11 Dec 2024 13:27:57 -0500 Subject: [PATCH] update notificaiton model for encrypted field --- modules/va_notify/app/models/va_notify/notification.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/va_notify/app/models/va_notify/notification.rb b/modules/va_notify/app/models/va_notify/notification.rb index 67201095372..d0910568be8 100644 --- a/modules/va_notify/app/models/va_notify/notification.rb +++ b/modules/va_notify/app/models/va_notify/notification.rb @@ -3,5 +3,8 @@ module VANotify class Notification < ApplicationRecord self.table_name = 'va_notify_notifications' + + has_kms_key + has_encrypted :to, migrating: true, type: :text, key: :kms_key, **lockbox_options end end