title: Ruby on Rails querying over dateTime
body: <p>I need to rewrite some DB query so my Rails app can run on Heroku. In one query I need to fetch all entries which are not older then one day. I tried it like this=></p>
  
  <pre><code>Sendnotifications.where(:actionID =&gt; actionID.to_s,
  :time =&gt;  ['? &gt;= time =&gt; ?', DateTime.now,DateTime.now-1]).all.count
  </code></pre>
  
  <p>But this does not work, I guess because of a wrong syntax. So the question is how can I solve this query problem?</p>
  
  <p>Thanks :D</p>