So here is the query, very simple:
field = :has_bill value = nil scoped.where(field => value)
And it outputs as:
(`electricity_profile_segment_summaries`.`has_swimming_pool` IN ('') OR `electricity_profile_segment_summaries`.`has_swimming_pool` IS NULL)
Which includes nil values and 0 values as well. Which is not correct, I would like to represent only NULL values from the table.
Any help appreciated
How about manually limiting to
NULLfor thenilcase?