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

Fixed start_with? crash in schema_statements #41254

Conversation

kaspernj
Copy link
Contributor

Summary

When using UUID with MySQL as varchar with default to UUID(), I am getting "undefined method `start_with?' for nil:NilClass" on this line:
https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb#L168

The issue only happened on Heroku and not locally.

This fixes that issue.

@rails-bot
Copy link

rails-bot bot commented Apr 27, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Apr 27, 2021
@kaspernj
Copy link
Contributor Author

Has anytime had time to look at this? :-)

@rails-bot rails-bot bot removed the stale label Apr 27, 2021
@rails-bot
Copy link

rails-bot bot commented Jul 26, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Jul 26, 2021
@kaspernj
Copy link
Contributor Author

This is causing an issue in one of my projects. Have anyone had time to look at this? :-)

@rails-bot rails-bot bot removed the stale label Jul 26, 2021
@ghiculescu
Copy link
Member

is it possible to add a replication test?

@rails-bot
Copy link

rails-bot bot commented Oct 24, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@rails-bot rails-bot bot added the stale label Oct 24, 2021
@rails-bot rails-bot bot closed this Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants