提交 24174d1b 编写于 作者: A Aaron Patterson

this return value is not used, so stop returning it

上级 9280fbf7
......@@ -327,11 +327,10 @@ def migrate(direction)
when :down then announce "reverting"
end
result = nil
time = nil
ActiveRecord::Base.connection_pool.with_connection do |conn|
@connection = conn
time = Benchmark.measure { result = send(direction) }
time = Benchmark.measure { send(direction) }
@connection = nil
end
......@@ -339,8 +338,6 @@ def migrate(direction)
when :up then announce "migrated (%.4fs)" % time.real; write
when :down then announce "reverted (%.4fs)" % time.real; write
end
result
end
def write(text="")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册