seriouslyruby.com
Query for NULL ‘or’ empty string in ActiveRecord
Sometimes you come across a query that looks for an attribute that is NULL 'OR' an empty string. Sure there are options we could employ that may remove the necessity of checking for both …