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

[5.5] Add option to disable wrapping Migration in transaction #22757

Merged

Conversation

RobvH
Copy link
Contributor

@RobvH RobvH commented Jan 12, 2018

This PR provides the option to disable transactionally wrapping a migration.

In #15780 we added the ability to wrap migrations in transactions, where supported. This is awesome!

However, for exactly the same reasons expressed here: rails/rails#9483

I propose the identical solution merged here: rails/rails#9507

TL;DR

Postgres and SQL Server usually do support transactional DDL, but both also have cases where they do not. Adding this simple, passive option gives us the power to handle this when needed.

@RobvH RobvH force-pushed the fix-migration-transactions-cannot-be-disabled branch from cdabc49 to bdc0978 Compare January 12, 2018 18:12
@GrahamCampbell GrahamCampbell changed the title Add option to disable wrapping Migration in transaction [5.5] Add option to disable wrapping Migration in transaction Jan 12, 2018
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