If `dbfile_path` was a `Pathname` we could rewrite this to:

```ruby
dbfile_path.delete if dbfile_path.exist?
```

see https://github.com/rails/rails/pull/11979/files#r6179905