On 8 August 2012 14:33, Ken Collins <[email protected]> wrote: > >> But when using UUIDs, there is no reason to ask the database for a >> newly-inserted record's ID. > > There is if ActiveRecord uses it for a primary key.
But ActiveRecord will have generated it, and given it to the DB to insert - the DB won't have generated it; so there's no need to ask for it back when AR already has it. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
