rsim/oracle-enhanced — pull request #242 by yahonda (2012-11-04 02:00:58+00:00)
Title: Change add_index method to support changes at rails master

This pull request addresses following failures after these two commits at rails master.

- https://github.com/rails/rails/commit/8fc52706
Raise an ArgumentError when passing an invalid option to add_index

- https://github.com/rails/rails/commit/7042fe2f
Deprecate passing a string as third argument of `add_index`

```ruby
$ ARCONN=oracle ruby -Ilib:test test/cases/migration/index_test.rb
Using oracle
Run options: --seed 62785

# Running tests:

...SF........F

Finished tests in 13.890548s, 1.0079 tests/s, 1.2239 assertions/s.

1) Failure:
test_deprecated_type_argument(ActiveRecord::Migration::IndexTest) [test/cases/migration/index_test.rb:105]:
Expected a deprecation warning within the block but received none

2) Failure:
test_valid_index_options(ActiveRecord::Migration::IndexTest) [test/cases/migration/index_test.rb:95]:
ArgumentError expected but nothing was raised.

14 tests, 17 assertions, 2 failures, 0 errors, 1 skips
$
```