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

Properly type ActiveRecord::Type::Binary #1998

Merged

Conversation

jcoleman
Copy link
Contributor

@jcoleman jcoleman commented Aug 20, 2024

Motivation

Proper typing for ActiveRecord binary columns

Implementation

Pretty self-explanatory: updated the ActiveRecord type conversion case statement.

Tests

Added a column to the ActiveRecord column types test.

@jcoleman jcoleman requested a review from a team as a code owner August 20, 2024 16:02
@jcoleman jcoleman requested review from egiurleo and KaanOzkan August 20, 2024 16:02
@jcoleman
Copy link
Contributor Author

I have signed the CLA!

@paracycle paracycle added the enhancement New feature or request label Aug 20, 2024
ActiveRecord casts binary columns as Ruby strings, so we should
properly type those columns.
@jcoleman jcoleman force-pushed the properly_type_active_record_binary_columns branch from be9d5ee to a441790 Compare August 20, 2024 17:24
@paracycle paracycle enabled auto-merge August 20, 2024 18:19
@paracycle paracycle merged commit 3cf40c5 into Shopify:main Aug 20, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants