2014-04-21 Active Record で null でない、かつ空文字でない Rails tahara こんなふうに書けるんですね。 [1] pry(main)> Experience.where.not(content: [nil, '']).to_sql => "SELECT `experiences`.* FROM `experiences` WHERE (NOT ((`experiences`.`content` = '' OR `experiences`.`content` IS NULL)))"