diff options
author | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-02-09 01:20:52 -0200 |
---|---|---|
committer | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-02-09 01:20:52 -0200 |
commit | d70e0236df61d69c9299fe63df94da35c87ee2d8 (patch) | |
tree | 50af271dab628625e95849345b7312c1d9dca50e /activerecord/test/schema/sqlite_specific_schema.rb | |
parent | 12c3b3d65738eccb7b7a043b2a8a1ba65a46d34e (diff) | |
download | rails-d70e0236df61d69c9299fe63df94da35c87ee2d8.tar.gz rails-d70e0236df61d69c9299fe63df94da35c87ee2d8.tar.bz2 rails-d70e0236df61d69c9299fe63df94da35c87ee2d8.zip |
Added where option to add_index to support postgresql partial indices
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
Diffstat (limited to 'activerecord/test/schema/sqlite_specific_schema.rb')
0 files changed, 0 insertions, 0 deletions