Class: Securial::Role
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Securial::Role
- 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