1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix making an extra db file after testing for sqlite3

Testing for sqlite3 makes an extra db file `primary.sqlite3` as below.
```
$ bundle exec rake test:sqlite3
(snip)
$ git status
On branch test
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        db/
```
This commit is contained in:
Takayuki Nakata 2019-11-26 09:32:22 +09:00
parent 04fb1a651d
commit a8009c6d0f

View file

@ -11,7 +11,7 @@ module ActiveRecord
fixtures :people
def setup
@writing_handler = ActiveRecord::Base.connection_handlers[:writing]
@writing_handler = ConnectionHandler.new
end
def teardown