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
It seems that using has_many <class>, dependent: destroy in a parent model inhibits schema_associations from creating the inverse associations. As a workaround I'm using foreign_key: { on_delete: :cascade } in the child table migration file, but documentation says that the gem won't clobber additional definitions.
Please let me know if you need some additional information.
Regards,
Elias
The text was updated successfully, but these errors were encountered:
It seems that using
has_many <class>, dependent: destroy
in a parent model inhibits schema_associations from creating the inverse associations. As a workaround I'm usingforeign_key: { on_delete: :cascade }
in the child table migration file, but documentation says that the gem won't clobber additional definitions.Please let me know if you need some additional information.
Regards,
Elias
The text was updated successfully, but these errors were encountered: