instance method
record
Ruby on Rails 4.2.9
Since v3.1.12Signature
record(*command, &block)
record command. command should be a method name and arguments. For example:
recorder.record(:method_name, [:arg1, :arg2])
Parameters
-
commandrest -
blockblock
Source
# File activerecord/lib/active_record/migration/command_recorder.rb, line 48
def record(*command, &block)
if @reverting
@commands << inverse_of(*command, &block)
else
@commands << (command << block)
end
end
Defined in activerecord/lib/active_record/migration/command_recorder.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Migration::CommandRecorder