Hello!

It appears that the hobo migrator does not recognise the need for
habtm tables.

eg
Given the following models...

app/models/bear.rb:
    has_and_belongs_to_many :lakes

app/models/lake.rb:
    has_and_belongs_to_many :bears

Then Rails conventions would necessitate the generation of the
following to appear in a migration:

  create_table "bears_lakes", :id => false, :force => true do |t|
    t.integer  "bear_id"
    t.integer  "lake_id"
  end


I have added a patch that generates migration code for the needed
tables, but to integrate it into the generator is
left for someone with more knowledge of the specifics of that tool.

Please see the gist:
git://gist.github.com/226468.git



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to