method

id_was

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::AttributeMethods::PrimaryKey
id_was() public

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

Show source
Register or log in to add new notes.