我正在尝试运行一项jruby -S rake db:migrate
操作。
这会导致一个错误,该错误超出了我的 bash 终端所包含的行数,因此我看不到最相关的行,并且我遇到了大约 1000 行:
....
org/jruby/runtime/Block.java:89:in `call'
org/jruby/RubyProc.java:261:in `call'
org/jruby/RubyProc.java:249:in `call19'
org/jruby/RubyProc$INVOKER$i$0$0$call19.gen:-1:in `call'
org/jruby/internal/runtime/methods/DynamicMethod.java:216:in `call'
org/jruby/internal/runtime/methods/DynamicMethod.java:212:in `call'
org/jruby/runtime/callsite/CachingCallSite.java:202:in `call'
org/jruby/ast/CallTwoArgNode.java:59:in `interpret'
....
我试过jruby -S rake db:migrate > migrate.out
了,但错误消息仍然出现在我的终端上,内容migrate.out
是
== ChangeFieldsOnFoo: migrating ========================================
-- remove_column(:foos, :bar)
当然必须有一种方法可以阅读此错误消息!