Found the problem !! I had to uninstall the Less gem (less-1.1.12) . rake db:migration --trace gave me the following stack -
wrong number of arguments (1 for 0) /usr/lib/ruby/gems/1.8/gems/less-1.1.12/lib/ext.rb:60:in `inspect' /usr/lib/ruby/gems/1.8/gems/less-1.1.12/lib/ext.rb:60:in `send' /usr/lib/ruby/gems/1.8/gems/less-1.1.12/lib/ext.rb:60:in `to_proc' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ migration.rb:346:in `map' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ migration.rb:346:in `method_missing' ....rest deleted..... On Sep 9, 10:49 pm, Gokul Janga <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

