Use the ActiveRecord logger if the database adapter is not supported, instead of a non-existing variable.
Require the models used in the race conditions test.