Fixed migrations. Add media model and controller.