Fixed syntax error and db:migrate error