Skip to content

Commit

Permalink
Expand readme for column constraints (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
gouline committed Feb 23, 2024
1 parent f059bf4 commit d7fa4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Try running `dbt-metabase models --help` to see all the options available for fi

### Foreign Keys

Built-in relationship tests are the recommended way of defining foreign keys, however you can alternatively use `fk_target_table` and `fk_target_field` meta fields. If both are set for a column, meta fields take precedence.
Native [relationship tests](https://docs.getdbt.com/reference/resource-properties/data-tests#relationships) and [column-level constraints](https://docs.getdbt.com/reference/resource-properties/constraints#defining-constraints) are the recommended ways of defining foreign keys, however you can override them with `fk_target_table` and `fk_target_field` meta fields. If both are set for a column, meta fields take precedence.

```yaml
- name: country_id
Expand Down

0 comments on commit d7fa4fc

Please sign in to comment.