mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Revert "truncate debug.log on each test run"
This reverts commit 98043c689f
.
Because if every time `debug.log` is truncated,
developers have no way to see the previous ActiveRecord unit test results.
`debug.log` file can be easily reduced
by executing `$ touch /dev/null > debug.log` periodically.
This commit is contained in:
parent
2268859daf
commit
048866aa14
1 changed files with 1 additions and 2 deletions
|
@ -13,8 +13,7 @@ module ARTest
|
|||
|
||||
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'
|
||||
|
|
Loading…
Reference in a new issue