提交 86df55e7 编写于 作者: R Rafael Mendonça França

Merge pull request #7996 from yahonda/revert_7994

Revert "truncate debug.log on each test run"

I'm reverting this since we may want to see SQL results of subsequent tests run, to, per example, copare them.

I didn't realized this first time but @yahonda pointed me out.
......@@ -13,8 +13,7 @@ def self.connection_config
def self.connect
puts "Using #{connection_name}"
file = File.open('debug.log', 'w')
ActiveRecord::Model.logger = ActiveSupport::Logger.new(file)
ActiveRecord::Model.logger = ActiveSupport::Logger.new("debug.log")
ActiveRecord::Model.configurations = connection_config
ActiveRecord::Model.establish_connection 'arunit'
ARUnit2Model.establish_connection 'arunit2'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册