[OE-4347] Don't use models in migrations