# File lib/active_record/connection_adapters/abstract/database_statements.rb, line 382 def last_inserted_id(result) row = result.rows.first row && row.first end