```ruby
# frozen_string_literal: true
# database
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
```

Use physical .sqlite3 file instead of in-memory DB
user
```ruby
# frozen_string_literal: true
# database
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: 'kaminari_test.sqlite3'
```
assistant