Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database drop fix for Sequel (>= 5.38.0) #184

Conversation

AnotherRegularDude
Copy link

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.

@JonathanTron
Copy link
Member

Hi @AnotherRegularDude, thanks for working on the fix!

@JonathanTron JonathanTron merged commit cdf7773 into TalentBox:master Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants