Can't use a class from another component in migrations

Using the Locale class which is in

I get this error in the console.

Migrations should not include usage of models because if you’ll ever change model, your older migrations would fail and you won’t be able to deploy your project anew.

1 Like

Thanks, Alex.