method

id_was

rails 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.