Fix assignments model, controller, tests, and views