Skip to content

Include Migration.new in the transaction block#5

Merged
MatheusRich merged 3 commits intomainfrom
fix-transaction-wrap-initialize
Feb 3, 2026
Merged

Include Migration.new in the transaction block#5
MatheusRich merged 3 commits intomainfrom
fix-transaction-wrap-initialize

Conversation

@MatheusRich
Copy link
Contributor

@MatheusRich MatheusRich commented Feb 2, 2026

Closes #3

Move transaction from instance run to self.run to wrap both new(...) and .run.
Database operations in initialize are now rolled back on failure.

MatheusRich and others added 2 commits February 2, 2026 19:47
Move the transaction from the instance `run` method to `self.run` so
it wraps both initialization and execution. This ensures database
operations in `initialize` are rolled back on failure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MatheusRich MatheusRich force-pushed the fix-transaction-wrap-initialize branch 3 times, most recently from 68872aa to c719b04 Compare February 3, 2026 14:20
@MatheusRich MatheusRich force-pushed the fix-transaction-wrap-initialize branch from c719b04 to f0ba29e Compare February 3, 2026 14:27
@MatheusRich MatheusRich changed the title Fix transaction to wrap Migration.new Include Migration.new in the transaction block Feb 3, 2026
@MatheusRich MatheusRich merged commit 9d32355 into main Feb 3, 2026
4 checks passed
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.

Ensure Migration.new is also included in the transaction

1 participant