Class: Exwiw::ReverseScopeVia

Inherits:
Object
  • Object
show all
Includes:
Serdes
Defined in:
lib/exwiw/reverse_scope.rb

Overview

One referencer arm of a ReverseScope: the referencing table and the column on it that points at the reverse-scoped table's primary key.

column is given explicitly so a non-default foreign key (e.g. business_entity_customers.kantan_yoyaku_user_id, or organization_admins.id which itself references users.id) can be projected — and even a column with no declared belongs_to edge can be enumerated.