Fixed migrations to more properly handle user model for m2ms.