Skip to content

Commit

Permalink
Update switch.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfng authored Sep 11, 2024
1 parent 02d362f commit 5d6160c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/switch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit 5d6160c

Please sign in to comment.