diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-10 10:23:42 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-02-10 10:23:42 -0800 |
commit | 3092324ef4e2f6f096adfbcf92597502b3ce91aa (patch) | |
tree | e88523b0d13982371dfd6ec3d36000191d128e67 /activerecord/CHANGELOG.md | |
parent | fc3fad8d85a82e2ac9ed5c108fb2410b72ab447b (diff) | |
parent | aaffc2acd5fa3104fa936c334ef9d50774071c8b (diff) | |
download | rails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.tar.gz rails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.tar.bz2 rails-3092324ef4e2f6f096adfbcf92597502b3ce91aa.zip |
Merge pull request #4956 from mhfs/pg_partial_indices
Add support for partial indices to PostgreSQL adapter
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 69cf1193b6..3de5af22c5 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,18 @@ ## Rails 4.0.0 (unreleased) ## +* Added support for partial indices to PostgreSQL adapter + + The `add_index` method now supports a `where` option that receives a + string with the partial index criteria. + + add_index(:accounts, :code, :where => "active") + + Generates + + CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active + + *Marcelo Silveira* + * Implemented ActiveRecord::Relation#none method The `none` method returns a chainable relation with zero records |