On Sep 26, 5:05 pm, rick_2047 <[EMAIL PROTECTED]> wrote:
> I have two models Event and Category in my rails app.
> I want a join model for many to many association so i used the script
>
> ./script/generate migration create_categories_events event_id:integer
> category_id:integer
>
> but the migration that is generated is empty. I am using rails 2.1.1.
> Can anyone tell me whats the problem here

Because that generator doesn't try and fill in the migration for you
(script/generate model would). More details here:
http://guides.rails.info/migrations/migrations.html#_creating_a_migration

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