method

id_in_database

rails latest stable - Class: ActiveRecord::AttributeMethods::CompositePrimaryKey

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

id_in_database()
public

Returns the primary key column’s value from the database. If the primary key is composite, returns an array of primary key column values from database.