Sha256: 15636f2a3d425ee4b0437687795cdd3e78d34b442b56b1300198e2ed6e33ea98

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

# frozen_string_literal: true

class Community < ApplicationRecord
  global_registry_bindings ensure_entity_type: false,
                           include_all_columns: true,
                           exclude: %i[infobase_id infobase_gr_id]

  global_registry_bindings binding: :relationship,
                           type: :infobase_ministry,
                           id_column: :infobase_gr_id,
                           related_relationship_name: :ministry,
                           related_association_type: :ministry,
                           related_association_foreign_key: :infobase_id,
                           related_global_registry_id: :pull_infobase_global_registry_id

  def pull_infobase_global_registry_id(_type)
    '41f767fd-86f4-42e2-8d24-cbc3f697b794'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
global-registry-bindings-0.1.3 spec/internal/app/models/community.rb