What a coincidence.  I just ran rails g model, and each field was 
duplicated.

On Tuesday, July 14, 2015 at 1:47:50 AM UTC-4, Bart Dority wrote:
>
> Hello,
> I'm a newbie to Rails, and to this Group - just putting that out there.
> Here's my question:
>
> I have a migration file for a new table, and at the end of the file I 
> added the line:
>     add_index: :table_name, :name
>
> I was trying to generate an index on a single column in my database.
>
> But after running rake db:migrate ... I see 3 add_index lines added to my 
> schema.rb file.
>
> There's one for the :name column of the table, but rails seems to have 
> also generated an add_index line for each column in the table.
>
> Strange.  Anyone have ideas on this?
> Thank you!
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/37a3a4ae-e573-48d1-85fb-3768a88243dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to