module ActiveRecord::AttributeMethods::CompositePrimaryKey
def id_was
Returns the primary key column's previous value. If the primary key is composite,
def id_was if self.class.composite_primary_key? @primary_key.map { |col| attribute_was(col) } else super end end