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

Guard against nil record field #1181

Merged
merged 2 commits into from
May 21, 2021
Merged

Conversation

ajshepley
Copy link
Contributor

Under certain dbs and rails versions, it seems like the current migration does not ensure that the record field will have a default nonnull value, so I think it's worth having a guard clause.

@ajshepley ajshepley requested a review from a team May 21, 2021 17:24
@ajshepley ajshepley merged commit 13e13a4 into master May 21, 2021
@ajshepley ajshepley deleted the ajs/guard_against_nil_record_field branch May 21, 2021 17:31
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems May 21, 2021 17:35 Inactive
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