Hacker News new | ask | show | jobs
by phsr 4563 days ago
You can also create indexes concurrently, using `algorithm: :concurrently` when creating the index[1]. You can't create concurrent indexes within a transaction, so be sure to call `disable_ddl_transaction!` in your migration definition.

[1]: https://github.com/rails/rails/commit/2d33796457b139a58539c8...