On Mon, Aug 16, 2010 at 8:46 AM, voobles <[email protected]> wrote:
> Hello everyone,
>
> in a regular rails migration:
>
> def self.up
>    create_table :x_y, :id => false do |t|
>      t.references :x, :x
> end
>
> How do i do it with hobofields?
>
> the table is a habtm join, there's no model.
>

If at least one end of the habtm is declared in a model with a fields
block, the migration generator (as of 1.0ish) should pick up the need
for a join table and create one. If it doesn't, it's probably a bug.

--Matt Jones

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