Skip to content

Commit

Permalink
Provide an example of meta in dbt_project (#2270)
Browse files Browse the repository at this point in the history
## Description & motivation
<!---
Describe your changes, and why you're making them. Is this linked to an
open
issue, a pull request on dbt core, etc?

To learn more about the writing conventions used in the dbt Labs docs,
see the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md).
-->
It took me a while to figure out why my `meta` tag wasn't being captured
in the dbt_project file. I needed it nested under the `config` block. I
think it would have helped if there was an example of that.

(I deleted all the checklists as it didn't seem like they were needed
for this PR)

---------

Co-authored-by: mirnawong1 <89008547+mirnawong1@users.noreply.github.com>
Co-authored-by: Leona B. Campbell <3880403+runleonarun@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 21, 2023
1 parent 6142879 commit 8178b1d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/docs/reference/resource-configs/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,19 @@ select 1 as id
```

</File>

### Assign owner in the dbt_project.yml as a config property

<File name='models/my_model.sql'>

```yml
models:
jaffle_shop:
materialized: table
config:
meta:
owner: "@alice"
```
</File>

0 comments on commit 8178b1d

Please sign in to comment.