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

Support Postgres cidr column type #1907

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

alex-tan
Copy link
Contributor

Motivation

#1837 This adds types for cidr columns

Implementation

I added a when to type_for_activerecord_value, following the pattern used for Uuid.

Tests

I didn't because I don't believe there's an established way in the test suite to test against Postgres directly. I verified this worked in our app that has a Cidr column.

@alex-tan alex-tan requested a review from a team as a code owner May 21, 2024 16:15
@andyw8 andyw8 added the enhancement New feature or request label May 21, 2024
@andyw8
Copy link
Contributor

andyw8 commented May 21, 2024

For anyone else wondering what CIDR means:

https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

@KaanOzkan KaanOzkan merged commit 73327a3 into Shopify:main May 21, 2024
16 of 17 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.

None yet

3 participants