Skip to content

Commit

Permalink
Merge pull request #219 from baldwicc/patch-3
Browse files Browse the repository at this point in the history
create_view_as - Show contracts warning only when contract_config.enf…
  • Loading branch information
prdpsvs authored May 20, 2024
2 parents e309c4a + 5da1990 commit 071fb4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

{% set contract_config = config.get('contract') %}

{{exceptions.warn("Model contracts cannot be enforced by <adapter>!")}}

{% if contract_config.enforced %}
{{ exceptions.warn("Model contracts cannot be enforced by <adapter>!" }}
{{ get_assert_columns_equivalent(sql) }}
{%- endif %}

Expand Down

0 comments on commit 071fb4c

Please sign in to comment.