I am trying to find records where a specified property is not empty or blank. Since it is a string it is not nil in the database.
Post.where(:sourceurl != '')
The above seems like it should work but I still get records returned where the source_url property is empty. What is the proper way to do this?
try this