Topic: Migration: loading fixture for HABTM tables
Les say I have two tables (brands & products) linked with a HABTM table.
In my migration files, I can use this code to load data in them:
f = Fixtures.new(Brand.connection, # a database connection
"brands", # table name
Brand, # model class
But I dont see how I can load the code that loads the fixture with the data linking the two table because it require a model and there are none, just the table "brands_products".
How can I do this?