Skip to content

Commit 7c6b1f5

Browse files
authored
Merge pull request rails#50933 from 1060ki/update_docs_for_mysql_algorithm
[ci skip] [docs] Updated docs to indicate that mysql supports the algorithm
2 parents 1c2529b + e07aecc commit 7c6b1f5

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)