This PR fixes an issue that was preventing many-to-many relationship data in _links tables from being migrated when the foreign key table was composed of more than one word.
e.g. copying data from the v3 table public_advisory_audits__protected_areas to the v4 table public_advisory_audits_protected_areas_links was failing.
This was happening because relation.modelF contained hyphens and relation.attribute was camel case. In both cases, the values needed to be converted to snake case.
This PR fixes an issue that was preventing many-to-many relationship data in
_links
tables from being migrated when the foreign key table was composed of more than one word.e.g. copying data from the v3 table
public_advisory_audits__protected_areas
to the v4 tablepublic_advisory_audits_protected_areas_links
was failing.This was happening because
relation.modelF
contained hyphens andrelation.attribute
was camel case. In both cases, the values needed to be converted to snake case.