Ash FrameworkAF
Ash Framework3mo ago
4 replies
AngyL75

How to do AND or OR in WHERE ?

I would like to do
validate present(:payer_member_id), where: [attribute_does_not_equal(:state, :pencil) AND attribute_does_not_equal(:state, :draft_pencil)]

or
validate present(:payer_member_id), where: [attribute_does_not_equal(:state, :pencil) AND attribute_does_not_equal(:state, :draft_pencil)]


how to do the AND or the OR in the where ?
Was this page helpful?