Move test models into models.py and add migrations
Tests were failing on postgres due to foreign keys pointing to missing tables. In order for these tables to be present, we need migrations which declare depending on `content_type`.
This commit is contained in: