Replaced papertrail with custom implementation that stores record states