Sha256: 2d8f362a0ed6743cda6921bd82bd83a00563bb5d73cfbb4e71289c81a4c89247
Contents?: true
Size: 868 Bytes
Versions: 2
Compression:
Stored size: 868 Bytes
Contents
# frozen_string_literal: true module Maquina ## # 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. # class Organization < ApplicationRecord belongs_to :plan, class_name: "Maquina::Plan", foreign_key: :maquina_plan_id, optional: true, counter_cache: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maquina-0.7.2 | app/models/maquina/organization.rb |
maquina-0.7.1 | app/models/maquina/organization.rb |