Flowdock
method

revert

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: CommandRecorder
revert() public

While executing the given block, the recorded will be in reverting mode. All commands recorded will end up being recorded reverted and in reverse order. For example:

recorder.revert{ recorder.record(:rename_table, [:old, :new]) }
# same effect as recorder.record(:rename_table, [:new, :old])
Show source
Register or log in to add new notes.