title: when you do activeRecord.save does the transaction commit or is when the method exits?
body: <p>In Rails 3, when you do activeRecord.save does the transaction commit or is when the method exits ?</p>
  
  <p>so what I'm trying to figure out is if the MySQL is written right after save! or it's save after I exit the define black</p>
  
  <pre><code>def something
    1000.times do
         o = Order.new(:name =&gt; "Tomas")
         o.save
    end
  end 
  </code></pre>