Skip to content

Commit

Permalink
Fix Rails 7.2 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Jan 13, 2025
1 parent d46512f commit 7cc3179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Notification < ApplicationRecord

INSTANTLY = :instantly
DAILY = :daily
enum frequency: [ INSTANTLY, DAILY ]
enum :frequency, [ INSTANTLY, DAILY ]

validates_presence_of :frequency, :send_after

Expand Down

0 comments on commit 7cc3179

Please sign in to comment.