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

Extract #build_add_column_definition #45643

Conversation

adrianna-chang-shopify
Copy link
Contributor

@adrianna-chang-shopify adrianna-chang-shopify commented Jul 22, 2022

See #45625 for more context on exposing schema definition APIs.

Summary

This PR exposes the AlterTable schema definition that is produced when adding columns to a table. It does so through a new API, #build_add_column_definition, and stores ddl on the schema definition. It refactors the existing #add_column method to use this as an intermediate method to build the add_column definition.

@adrianna-chang-shopify adrianna-chang-shopify changed the title Extract #build_create_add_column_definition Extract #build_add_column_definition Jul 22, 2022
@adrianna-chang-shopify adrianna-chang-shopify force-pushed the ac-extract-build-add-col-definition branch 2 times, most recently from 9b082fe to 9d13ba4 Compare July 28, 2022 17:43
Exposes AlterTable schema definition for adding new columns through new API,
and stores ddl on the schema definition. Refactors existing #add_column method to use
this as an intermediate method to build the create add_column definition.
@eileencodes eileencodes merged commit 6d100e5 into rails:main Jul 28, 2022
@adrianna-chang-shopify adrianna-chang-shopify deleted the ac-extract-build-add-col-definition branch July 28, 2022 20:10
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