method

record

rails latest stable - Class: ActiveRecord::Migration::CommandRecorder
record(*command, &block)
public

Record command. command should be a method name and arguments. For example:

recorder.record(:method_name, [:arg1, :arg2])