id_was()
Returns the primary key previous value.
# File activerecord/lib/active_record/attribute_methods/primary_key.rb, line 43 def id_was sync_with_transaction_state attribute_was(self.class.primary_key) end