You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dug into this a bit this evening, and it appears that the has_and_belongs_to_many join table does actually get a pair of implicit backing models. Given the following:
We get two backing HABTM models: Product::HABTM_Categories and Category::HABTM_Products. As far as I can tell (having implemented a test for this on my fork), registering either of these models should do the trick.
SeedMigration.registerCategory::HABTM_Products
I'd be happy to submit a PR with the test and some documentation for this.
Is it possible to add support to has_and_belongs_to_many tables that has no model ?
The text was updated successfully, but these errors were encountered: