Fix an issue that caused migrations to reference tables that don’t exist (yet)
Migrate existing polymorphic relations