adjust cycle-check migration to be valid

it is now possible to rollback the migration.
Merge pull request #519 from ontohub/503-fix_cycle_check

Adjust cycle-check migration to be valid. Fixes #503.