Sha256: 754d52f95243691474083e6cef78533b5beae032bf1fb7c637c86b636e662e27

Contents?: true

Size: 423 Bytes

Versions: 6

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

class Organization < ApplicationRecord
  has_many :children, class_name: 'Organization', foreign_key: :parent_id
  belongs_to :parent, class_name: 'Organization'

  has_many :assignments
  global_registry_bindings id_column: :gr_id,
                           type: :fancy_org,
                           push_on: %i[create delete],
                           parent_association: :parent
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
global-registry-bindings-0.0.6 spec/internal/app/models/organization.rb
global-registry-bindings-0.0.5 spec/internal/app/models/organization.rb
global-registry-bindings-0.0.4 spec/internal/app/models/organization.rb
global-registry-bindings-0.0.3 spec/internal/app/models/organization.rb
global-registry-bindings-0.0.2 spec/internal/app/models/organization.rb
global-registry-bindings-0.0.1 spec/internal/app/models/organization.rb