Skip to content

Commit e07aecc

Browse files
committed
[ci skip] [docs] Updated docs to indicate that mysql supports the algorithm
1 parent 4332988 commit e07aecc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,12 @@ def rename_column(table_name, column_name, new_column_name)
876876
# ====== Creating an index with a specific algorithm
877877
#
878878
# add_index(:developers, :name, algorithm: :concurrently)
879-
# # CREATE INDEX CONCURRENTLY developers_on_name on developers (name)
879+
# # CREATE INDEX CONCURRENTLY developers_on_name on developers (name) -- PostgreSQL
880880
#
881-
# Note: only supported by PostgreSQL.
881+
# add_index(:developers, :name, algorithm: :inplace)
882+
# # CREATE INDEX `index_developers_on_name` ON `developers` (`name`) ALGORITHM = INPLACE -- MySQL
883+
#
884+
# Note: only supported by PostgreSQL and MySQL.
882885
#
883886
# Concurrently adding an index is not supported in a transaction.
884887
#

0 commit comments

Comments
 (0)