Here is my code for checking boolean (i am using sqlite)
Swimming::Classstudent.where("swimming_classtimes.date >= ? and student_id = ? and deleted = 'f'",current_date,student_id)
Apparently it looks ugly.
I tried
Swimming::Classstudent.where("swimming_classtimes.date >= ? and student_id = ? and deleted = 0 ",current_date,student_id)
and
Swimming::Classstudent.where("swimming_classtimes.date >= ? and student_id = ? and deleted = false ",current_date,student_id)
They both are not working. Is there a better way to check boolean with where in rails ?