6 lines
196 B
SQL
6 lines
196 B
SQL
{% test not_negative_or_zero(model, column_name) %}
|
|
with validation as (select {{ column_name }} as value from {{ model }})
|
|
select *
|
|
from validation
|
|
where value <= 0
|
|
{% endtest %}
|