Class: Securial::Role

Inherits:
ApplicationRecord show all
Defined in:
app/models/securial/role.rb

Overview

Role

This class represents a role in the Securial authorization system.

Roles are used to define permissions and access levels for users within the application.

## Attributes

  • ‘role_name`: The name of the role, which is normalized to ensure consistency.

## Validations

  • ‘role_name` must be present and unique (case insensitive).

## Associations

  • Has many role assignments, allowing users to be associated with this role

  • Has many users through role assignments, enabling flexible permission management

Method Summary

Methods inherited from ApplicationRecord

#generate_uuid_v7