Fixed migrations and views.