Replies: 1 comment 2 replies
-
That's already possible, although it requires some manual work. You would define some struct that implement https://docs.diesel.rs/2.2.x/diesel/migration/trait.Migration.html https://docs.diesel.rs/2.2.x/diesel/migration/trait.MigrationSource.html |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One of the benefits with Ecto or Active Record is you can run code or even access application code along side the DB migrations.
This is useful if you need to access redis or some other system along side changes occurring in the database.
You also get to piggy back on the DB lock to get idempotent changes.
Beta Was this translation helpful? Give feedback.
All reactions