title: Rails get the id of the inserted row (not the last inserted)
body: <p>In my model I have code that looks like this:</p>
  
  <pre><code>Report = Report.new()
  Report.Name = name
  Report.save()
  </code></pre>
  
  <p>This process happens several times in a second in parallel. If I get the last inserted <code>id</code> it gives me the wrong results. I <strong>don't</strong> want the <code>id</code> of the <em>last</em> inserted row in the database, I want the <code>id</code> of the actual inserted row. How do I do this? </p>