Thanks for pointing that out mahmoud

modsaid wrote:
> Actually in has_and_belongs_to_many association, the joint table MUST
> NOT have an id
> 
> in the migration for creating the join table, you need to skip the
> default id creation... check the attribute :id for creating table in
> the api
> http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#M001090
> 
> for details 
> http://blog.modsaid.com/2008/09/hasandbelongstomany-duplicate-entry.html
> 
> mahmoud,

-- 
Posted via http://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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to