I have the following squeel query:
i = Invoice.where{ paid == true }
that's the same as:
i = Invoice.where ['paid = ?', true]
and executes:
SELECT "invoices".* FROM "invoices" WHERE "invoices"."paid" = 't'
However, this query doesn't return any invoices at all. It doesn't work if I try to execute the query from my sqlite program ether, seems like that query is wrong. I'm absolutely sure there are invoices in the sqlite db with both 't' and 'f' as value. How to get this right?