diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-04-13 09:47:50 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-04-13 09:48:04 +0200 |
commit | ec59d6ec8441dda222659f6aa4f8dadaf0607c0b (patch) | |
tree | 10def20153fc57d91c186a124e0e486c6947b382 | |
parent | 86ba051486ec0b91ecb403f21a2c384cf6b926dd (diff) | |
parent | e91c4339e4d8967f3d8e9eaf1f82bbc113bc69c1 (diff) | |
download | rails-ec59d6ec8441dda222659f6aa4f8dadaf0607c0b.tar.gz rails-ec59d6ec8441dda222659f6aa4f8dadaf0607c0b.tar.bz2 rails-ec59d6ec8441dda222659f6aa4f8dadaf0607c0b.zip |
Merge pull request #19741 from greysteil/add-note-about-partial-index-support
Document that partial indexes are only supported by Postgres and SQLite.
-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') |