instance method
record
Ruby on Rails edge
Since v3.1.12 Private — implementation detail, not part of the public APISignature
record(command, args, kwargs, &block)
No documentation comment.
Parameters
-
commandreq -
argsreq -
kwargsreq -
blockblock
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 121
def record(command, args, kwargs, &block)
if @reverting
@commands << inverse_of(command, args, kwargs, &block)
else
@commands << [command, args, kwargs, block]
end
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 121
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder