When we try to recreate a database using the rails db:drop db:create command with a non-existent database, we will crash when the Sequel::Model#db method is called. This happens because array Sequel::DATABASES is empty (this change in Sequel).
I think we just need to check a size of Sequel::DATABASES before processing #drop.
When we try to recreate a database using the
rails db:drop db:create
command with a non-existent database, we will crash when theSequel::Model#db
method is called. This happens because arraySequel::DATABASES
is empty (this change in Sequel).I think we just need to check a size of
Sequel::DATABASES
before processing#drop
.