Fix migration to update group_id foreign key columns