On 6 Oct 2008, at 07:43, RoR_Nb wrote:
>
> I know i don't have an id for the join table
>

With has_many :through, the join table is a model in its own right and  
needs a promary key

Fred
> class CreateTags < ActiveRecord::Migration
>  def self.up
>    create_table :tags, :id => false do |t|
>      t.integer :blog_id
>      t.integer :technology_id
> ......
>  end
> end
>
> How can i solve this problem?
> thanks in advanced
> >


--~--~---------~--~----~------------~-------~--~----~
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