title: ruby date scope not working on heroku
body: <p>I have a date scope set in a model that presents guide information if it is within a current date range.
  For example:</p>
  
  <p>A guide entry is set between the 10th of June and the 18th of July, therefore this code should activate the scope.</p>
  
  <pre><code>   scope :active_at_date, lambda { where("date_starting &lt; :date and date_ending &gt; :date", date: Date.today )}
  </code></pre>
  
  <p>It seems to be working fine locally. However on Heroku it does not.</p>
  
  <p>Why? and how can I fix it so that it works on Heroku?</p>
  
  <p>Thanks in advance. </p>