Refactored user roles

This commit is contained in:
2024-09-23 12:32:45 +02:00
parent 0f877456a4
commit 084613bbf5
3 changed files with 26 additions and 30 deletions

View File

@@ -23,8 +23,6 @@ class User < ApplicationRecord
normalizes :email, with: -> { _1.strip.downcase }
AVAILABLE_ROLES = [ :user, :operator, :admin ]
enum :role, {
user: "user",
operator: "operator",