method

last_insert_id

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.9) is shown here.

last_insert_id(sequence_name)
private

Returns the current ID of a table’s sequence.