Class: Maquina::Organization
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Maquina::Organization
- Defined in:
- app/models/maquina/organization.rb
Overview
A class representing the Organization model in the Maquina module.
Attributes
name-
The name of the Organization.
active-
A boolean flag indicating whether the Organization is active.
maquina_plan_id-
The foreign key reference to the associated Plan.
Associations
plan-
Belongs to a Plan (optional). When the associated Plan is deleted, the reference is set to null.
Usage
The Organization model represents an organizational entity within the Maquina module. Organizations can be associated with a pricing plan and their active status can be tracked.