blog index Jun 10, 2018 ActiveRecord find where not null or empty That is all you need, when using ActiveRecord: .where("field_in_db <> ''")