Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 382 Bytes

relationships.md

File metadata and controls

16 lines (13 loc) · 382 Bytes

relationships (source)

Verifies the referential integrity between a child and a parent table, typically ensuring foreign key constraints.

Usage:

 models:
  - name: orders
    columns:
      - name: customer_id
        tests:
          - relationships:
              to: ref('customers')
              field: id