title: Unexpected ',' expecting ')' in update_attributes - Rails
body: <p>I'm trying to make a Migration but I'm having some troubles. When I try to run "rake db:migrate" on Heroku I got an error message. Now I discover in my localhost that my code in the migration has something wrong - but I don't know what's. </p>
  
  <p>This is the code of my migration:</p>
  
  <pre><code>def change
      add_column :comments, :likes_count, :integer, :default =&gt; 0
      Comment.all().each do |comment|
          comment.update_attribute(:likes_count, comment.likes.count)
          comment.save        
      end
    end
  </code></pre>
  
  <p>And this is the error that I get on my console (when I try to copy and paste this code on "rails console"):</p>
  
  <pre><code> SyntaxError: (irb):3: syntax error, unexpected ',', expecting ')'
  c.update_attribute (:likes_count, comment.likes.count)
                                   ^
  (irb):3: syntax error, unexpected ')', expecting keyword_end
  </code></pre>
  
  <p>Someone can help me?</p>
  
  <p>--------------------- Edit ---------------------------<br>
  The strange is: I already run this migration on localhost, and everything in localhost works. But when I try to run a "rake db:migrate" on Heroku, I got an error - and when I try to run the same code on the rails console, I got an error too (as you can see above). </p>