From 5d6160c63457786953c912ba779d0d5026b19cae Mon Sep 17 00:00:00 2001 From: joshfng <121190566+joshfng@users.noreply.github.com> Date: Tue, 10 Sep 2024 20:37:39 -0400 Subject: [PATCH] Update switch.rb --- app/models/switch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/switch.rb b/app/models/switch.rb index 5438783..10e1629 100644 --- a/app/models/switch.rb +++ b/app/models/switch.rb @@ -5,7 +5,7 @@ class Switch < ApplicationRecord has_many :heartbeats, dependent: :destroy - encrypts :name, :content, :heartbeat_address, :switch_address + has_encrypted :name, :content, :heartbeat_address, :switch_address enum heartbeat_interval: { daily: 0, weekly: 1, monthly: 2 }