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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

