add archived users view

This commit is contained in:
Pete Matsyburka committed 2024-04-19 16:19:02 +03:00
1 parent fe04d22c94
commit e65234b4c8
4 files changed
+50 -9

No files matched your search

+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