You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jwg2s I need to update our README that parallel migrations won't work unless you implement your own schema-aware advisory locks for migrations. I'm seeking advise for how to advise users who want to use parallel migrations rails/rails#43500 (comment)
Steps to reproduce
config.parallel_migration_threads = 4
(really anything greater than 1 will expose the issue)bundle exec rake db:migrate
Expected behavior
Actual behavior
ActiveRecord::ConcurrentMigrationError
error is raised, migrations fail.System configuration
Database: Postgres v14.12
Apartment version: Happens regardless of
ros-apartment
version, but confirmed on3.1.0
and2.11.0
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
:true
parallel_migration_threads
:4
Rails (or ActiveRecord) version:
6.1.7.9
Ruby version:
3.1.4
The text was updated successfully, but these errors were encountered: