<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>CortYuming</author_name>
  <author_url>https://blog.hatena.ne.jp/CortYuming/</author_url>
  <blog_title>牌語備忘録 -pygo</blog_title>
  <blog_url>https://cortyuming.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>問題 ブーリアン値 hoge が ture 以外を検索したい DBの状態 dbにカラム foobar で nil x5、false x1、true、x0。 true以外が計6コ。 User.where(:foobar =&gt; nil).count (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`foobar` IS NULL =&gt; 5 User.where(:foobar =&gt; false).count (0.3ms) SELECT COUNT(*) FROM `users` WHERE `users`.`foobar` = 0 =&gt; 1 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcortyuming.hateblo.jp%2Fentry%2F20130314%2Fp2&quot; title=&quot; Rails3 で true, false, nil の混じったブーリアン値を whereで検索するのに若干ハマったのでメモ - 牌語備忘録 -pygo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-14 00:00:00</published>
  <title> Rails3 で true, false, nil の混じったブーリアン値を whereで検索するのに若干ハマったのでメモ</title>
  <type>rich</type>
  <url>https://cortyuming.hateblo.jp/entry/20130314/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
