Skip to content

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