Syntax errors in models and migrations were fixed.