```ruby
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

ActiveRecord::Base.configurations = {
  'unittest' => {
    :adapter  => 'sqlite3',
    :database => 'storebasestiname_unittest.sql',
  }
}

ActiveRecord::Base.establish_connection :unittest
```

Fix error that prevents tests from running on Rails 5.1:
user
```ruby
require 'logger'

ActiveRecord::Base.logger = Logger.new("debug.log")

ActiveRecord::Base.establish_connection(
  :adapter  => 'sqlite3',
  :database => 'storebasestiname_unittest.sql',
)
```
assistant