It seems it expects the index name to be a string, does it work if you
use a string?
On Thu, Jun 17, 2010 at 21:52, byrnejb <byrnejb@harte-lyne.ca>
wrote:> I have opened this ticket:
>
>
>
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4891-rails-238-dbmigrate-gives-undefined-method-length-for-any_indexsymbol
>
> The problem does not occur with RoR-2.3.5
>
> Basically, wherever I have defined an index in a migration the rake
> db:migrate task throws this error:
>
> <pre>
> -- add_index(:sessions, :session_id,
> {:unique=>true, :name=>:idxr_sessions_session_id})
> rake aborted!
> An error has occurred, this and all later migrations canceled:
>
> undefined method `length'' for :idxr_sessions_session_id:Symbol
> </pre>
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
--
J. Pablo Fernández <pupeno@pupeno.com> (http://pupeno.com)
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.