method
id_was
v8.1.1 -
Show latest stable
- 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.