Replies: 1 comment
-
Sequel doesn't currently support this, but it does seem worth adding. I'll definitely consider a pull request that adds this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default, ActiveRecord uses advisory locks (if supported by the db adapter, e.g. postgres) to ensure concurrent migrations don’t end up running on the same database. We use Sequel and recently came across the need for such a feature to avoid issues we were having with our deployment setup. We finally implemented a solution following the same approach as Rails. It looks like this:
I don't know if this has been considered before (I couldn't find anything about it) but, do you think it would make sense to bring this functionality to the Sequel migrator itself? I'd be willing to prepare a PR if there's appetite for it.
Beta Was this translation helpful? Give feedback.
All reactions