Anyone encountering an error with add_index and multiple columns?
For example -
add_index(:article_views, [:session_id,:ip_address], :unique => true, :name => 'article_views_unique')
in a migration throws the following error -
"wrong number of arguments (1 for 0)"
but the following works fine !!
add_index(:article_views, [:session_id], :unique => true, :name => 'article_views_unique')
The documentation says that the column name that follows the table name can be an array of symbols, but it seems to accept only one entry.
Using Rails 2.3.2 against PostgreSQL using the Pg 0.8.0 driver.
Thanks for any help. Gokul.