Fix migration on active rule changes