title: Why is Foo.first returning the last record?
body: <p>I have 2 records in <code>Foo</code>, with id's 1 and 2. Both created in that order. Bare in mind, in Postgres, records have no inherent order.</p>
  
  <p>In Rails console. <code>Foo.first</code> and <code>Foo.last</code> returns the last record. I was under the impression that <code>Foo.first</code> would return the first record.</p>
  
  <p>Here's the catch. The SQL queries look like:</p>
  
  <pre><code>SELECT "foos".* FROM "foos" LIMIT 1
  SELECT "foos".* FROM "foos" ORDER BY "foos"."id" DESC LIMIT 1
  </code></pre>
  
  <p>The second query (<code>Foo.last</code>) has an <code>ORDER BY DESC</code>. So why doesn't AR have an <code>ORDER BY ASC</code> for <code>.first</code>? Whats the logic behind this? Seems a bit "inconsistent".</p>
  
  <p>I can easily solve this by doing: <code>Foo.order('id ASC').first</code> instead. But looking for an explanation.</p>