To correct an ActiveRecord::ConcurrentMigrationError when trying to run Rails databases migrations, you need to:
- open
psql - Select advisory locks
SELECT pid, locktype, mode FROM pg_locks WHERE locktype = 'advisory'; - Kill this scoundrels!
SELECT pg_terminate_backend(<PID>);
Top comments (2)
Thanks for sharing! That just saved me a couple of hours figuring out what the hell was happening.
Thank you very much!!