diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-08-13 11:44:58 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-08-13 11:44:58 +0200 |
commit | ecfce561e415d99df48eebefc1b444dd53580d1a (patch) | |
tree | f4bf69fb7ab73b31b6a3005b88dd91249ae13dd8 /activerecord/test/models/possession.rb | |
parent | 82e28492e7c581cdeea904464a18eb11118f4ac0 (diff) | |
download | rails-ecfce561e415d99df48eebefc1b444dd53580d1a.tar.gz rails-ecfce561e415d99df48eebefc1b444dd53580d1a.tar.bz2 rails-ecfce561e415d99df48eebefc1b444dd53580d1a.zip |
`index_exists?` with `:name` checks specified columns.
[Yves Senn & Matthew Draper]
The column check was embodied in the defaul index name.
If the :name option was used, the specified columns were not verified at all.
Given:
```
assert connection.index_exists?(table_name, :foo_id, :name => :index_testings_on_yo_momma)
```
That index could have been defined on any field, not necessarily on `:foo_id`.
Diffstat (limited to 'activerecord/test/models/possession.rb')
0 files changed, 0 insertions, 0 deletions