6 ms·
You can also create indexes concurrently, using `algorithm: :concurrently` when creating the index[1]. You can't create concurrent indexes within a transaction,
by phsr 13y 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/2d33796457b139a58539c890624591c97354d334 https://github.com/rails/rails/commit/2d33796457b139a58539c8...