diff options
author | Grey Baker <greysteil@gmail.com> | 2015-04-13 01:32:51 +0200 |
---|---|---|
committer | Grey Baker <greysteil@gmail.com> | 2015-04-13 09:33:48 +0200 |
commit | e91c4339e4d8967f3d8e9eaf1f82bbc113bc69c1 (patch) | |
tree | 01a08b36acf94aea7b879b3f1fcbfc811533914e /activerecord/lib/active_record | |
parent | 86ba051486ec0b91ecb403f21a2c384cf6b926dd (diff) | |
download | rails-e91c4339e4d8967f3d8e9eaf1f82bbc113bc69c1.tar.gz rails-e91c4339e4d8967f3d8e9eaf1f82bbc113bc69c1.tar.bz2 rails-e91c4339e4d8967f3d8e9eaf1f82bbc113bc69c1.zip |
Document that partial indexes are only supported by Postgres and SQLite.
Fixes #18106
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 466b076571..ecb4868c13 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -537,6 +537,8 @@ module ActiveRecord # # CREATE UNIQUE INDEX index_accounts_on_branch_id_and_party_id ON accounts(branch_id, party_id) WHERE active # + # Note: Partial indexes are only supported for PostgreSQL and SQLite 3.8.0+. + # # ====== Creating an index with a specific method # # add_index(:developers, :name, using: 'btree') |