title: Postgres Query with LIKE and EQUAL TO
body: <p>I'm trying to write a query with LIKE and = conditions:</p>
  <pre><code>Model.where(&quot;extract(day from month) = ? OR lower(name) LIKE ?&quot;,params[:filter], &quot;%#{params[:filter]}%&quot;.downcase )
  </code></pre>
  <p>I get return for the month value but i don't get any return for the name value.</p>
  <p>so how can i use 'LIKE' and 'EQUAL TO' together in one query?</p>
  <p>[EDIT] : when i use only the like statement it works fine.</p>