title: Getting Rails error "syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '('"
body: <p>I am trying to migrate <em>subject_id</em> and <em>course_id</em> to the <em>users</em> table by typing:</p>
  
  <pre><code>rails generate migration add_course_id_and_subject_id_to_users course_id:integer, subject_id:integer
  </code></pre>
  
  <p>However, it results in the error:</p>
  
  <blockquote>
    <p>_add_course_id_and_subject_id_to_users.rb:4: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '('</p>
  </blockquote>
  
  <p>Not sure why this is happening.</p>