How to do AND or OR in WHERE ?
I would like to do
or
how to do the
or
how to do the
AND or the OR in the where ?ANDORvalidate present(:payer_member_id), where: [attribute_does_not_equal(:state, :pencil) AND attribute_does_not_equal(:state, :draft_pencil)]validate present(:payer_member_id), where: [attribute_does_not_equal(:state, :pencil) AND attribute_does_not_equal(:state, :draft_pencil)]