From 54bd800a82bcc2f727761e166de541a003d96771 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Thu, 14 Aug 2025 14:20:21 +0200 Subject: [PATCH] fix: update enum syntax for Rails 7.2 compatibility - Change enum availability from keyword args to positional args - Fix deprecation warning: 'Defining enums with keyword arguments is deprecated' - Required for Rails 7.2.2.2 enum syntax changes - Application now starts successfully with overmind --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 98698bbbd..0a5815ea6 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -62,7 +62,7 @@ class User < ApplicationRecord # TODO: remove in a future version once online status is moved to account users # remove the column availability from users - enum availability: { online: 0, offline: 1, busy: 2 } + enum :availability, { online: 0, offline: 1, busy: 2 } # The validation below has been commented out as it does not # work because :validatable in devise overrides this.