KH-214: Activate codes relations on delete

When deleting latest codes version relations in earlier version of codes
is switched to active.
Merge branch 'develop' of https://github.com/Opetushallitus/koodisto into develop