Module: ActiveRecord::Dbt::Column::DataTestable::RelationshipsDataTestable
- Extended by:
- RequiredMethods
- Included in:
- ActiveRecord::Dbt::Column::DataTest
- Defined in:
- lib/active_record/dbt/column/data_testable/relationships_data_testable.rb
Instance Method Summary collapse
Methods included from RequiredMethods
Methods included from DbtPackage::Dbterd::Column::DataTestable::RelationshipsMetaRelationshipType
#relationships_meta_relationship_type
Instance Method Details
#relationships_test ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/active_record/dbt/column/data_testable/relationships_data_testable.rb', line 17 def relationships_test return nil if foreign_key.blank? { 'relationships' => { 'severity' => data_sync_delayed? ? 'warn' : nil, 'to' => "source('#{source_name}', '#{to_table}')", 'field' => primary_key, 'meta' => }.compact } end |