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 |
# File 'lib/active_record/dbt/column/data_testable/relationships_data_testable.rb', line 17 def relationships_test return nil if foreign_key.blank? || exclude_table_names.include?(to_table) { 'relationships' => { 'arguments' => relationships_arguments, 'config' => relationships_config }.compact } end |