Hey Bartosz - the documentation you linked refers to an earlier iteration of Dagster's versioning functionality (your question actually just inspired me to get rid of it).
We recently introduced asset versioning, documented here: https://docs.dagster.io/concepts/assets/software-defined-assets#asset-code-versions.
@sean might have some additional information on how to do this with dbt.