title: Postgres Date/Time Field value out of range
body: <p>I'm running postgres 9 on mac lion... on a rails 3.2.3 web app.</p>
  
  <p>I am querying a table for an entry called errors_rates_last_updated_at, which doesn't exist as of yet. So when I type the following in the rails console:</p>
  
  <pre><code>a = Settings.errors_rate_last_updated_at
  </code></pre>
  
  <p>I get a = 0000-01-01 00:00:00 -0800 . Fair enough.</p>
  
  <p>Then when I query the Model with this date, with </p>
  
  <pre><code> Error.where('most_recent_notice_at &gt; ?', a)
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ActiveRecord::StatementInvalid: PG::Error: ERROR:  date/time field value out of range: "0000-01-01 08:00:00.000000"
  </code></pre>
  
  <p>Could someone help me figure out what's going on? Thanks!</p>