add archived users view

This commit is contained in:
Pete Matsyburka
2024-04-19 16:08:12 +03:00
parent fe04d22c94
commit e65234b4c8
4 changed files with 50 additions and 9 deletions
+1
View File
@@ -65,6 +65,7 @@ class User < ApplicationRecord
attribute :uuid, :string, default: -> { SecureRandom.uuid }
scope :active, -> { where(archived_at: nil) }
scope :archived, -> { where.not(archived_at: nil) }
scope :admins, -> { where(role: ADMIN_ROLE) }
def access_token