<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haayaaa</author_name>
  <author_url>https://blog.hatena.ne.jp/haayaaa/</author_url>
  <blog_title>haayaaa’s diary</blog_title>
  <blog_url>https://haayaaa.hatenablog.com/</blog_url>
  <categories>
    <anon>DB関係</anon>
    <anon>Rails</anon>
    <anon>Ruby</anon>
    <anon>エラー解決</anon>
  </categories>
  <description>問題 ransackで oooo/oo/oo から xxxx/xx/xx までというふうに日付検索ができるようにしていたのですが、 そのままだと xxxx/xx/xx の部分の時間が00:00:00となってしまう事で、指定した日付の前日までのデータしか取得できませんでした。 2019-03-01から2019-03-01までで検索すると以下のようなSQLが発行されてしまい、2019-03-01に作成されたデータは取得できません。。。 Hoge Load (0.6ms) SELECT &quot;hoges&quot;.* FROM &quot;hoges&quot; WHERE (&quot;hoges&quot;.&quot;created_at&quot; &gt;= '20…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhaayaaa.hatenablog.com%2Fentry%2F2019%2F03%2F16%2F224953&quot; title=&quot;ransackを使った日付検索で指定した日付の前日までのデータしか取得できないのを修正 - haayaaa’s diary&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>2019-03-16 22:49:53</published>
  <title>ransackを使った日付検索で指定した日付の前日までのデータしか取得できないのを修正</title>
  <type>rich</type>
  <url>https://haayaaa.hatenablog.com/entry/2019/03/16/224953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
