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