added migration for adding arm_id to orphaned groups and added constraint