I've always used add_index(table_name, column_names). My guess is that t.index was deprecated.
just use add_index :your_table_name, :name after your create_table block On Aug 22, 10:12 am, Heinz Strunk <li...@ruby-forum.com> wrote: > Hello, > > I'm playing around with Rails3 and trying to upgrade one of my > applications to Rails 3.0.0.rc and I get an error which should be still > working. > > Migration: > t.index :name > > When I execute rake: > rake aborted! > An error has occurred, all later migrations canceled: > > undefined method `index' for > #<ActiveRecord::ConnectionAdapters::TableDefinition:0x4b2b6b0> > > Does some one know what's wrong here? > -- > Posted viahttp://www.ruby-forum.com/. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.