Skip to content

Commit

Permalink
create_view_as - Show contracts warning only when contract_config.enf…
Browse files Browse the repository at this point in the history
…orced is set
  • Loading branch information
baldwicc authored Mar 7, 2024
1 parent 7d414cd commit 5da1990
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 5da1990

Please sign in to comment.