Undo/redo changes made to Rails models