Skip to content

Commit b427c50

Browse files
committed
Merge pull request rails#19741 from greysteil/add-note-about-partial-index-support
Document that partial indexes are only supported by Postgres and SQLite.
1 parent 4a2c7c6 commit b427c50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ def rename_column(table_name, column_name, new_column_name)
530530
#
531531
# CREATE UNIQUE INDEX index_accounts_on_branch_id_and_party_id ON accounts(branch_id, party_id) WHERE active
532532
#
533+
# Note: Partial indexes are only supported for PostgreSQL and SQLite 3.8.0+.
534+
#
533535
# ====== Creating an index with a specific method
534536
#
535537
# add_index(:developers, :name, using: 'btree')

0 commit comments

Comments
 (0)