Using blank? or present? in model-scopes in Ruby on Rails <p>In my model, I have several scopes defined such as:</p> <pre><code>scope :myScope1, where('myField IS NULL') </code></pre> <p>This works, but I don't need to check for 'Null' - I need to check for '.blank?' - because there are cases of non-nulls which are 'blank' in the DB, which I need to include. I can use '.blank?' in my class-defs (and do - and they work there), but I cannot use this in this current context.</p> <p>I have not been able to find a syntax (of the non-depreciated variety) which will work for this. Thanks.</p>