0

I have just recently cloned a sample rails application I am working on onto my macbook and I am trying to run rake db:migrate but I get the following error

rake aborted!
/Users/anderskitson/Sites/sample_app/db/migrate/20130207032207_add_password_digest_to_users.rb:5: syntax error, unexpected keyword_end, expecting $end

Here is the rb file

raclass AddPasswordDigestToUsers < ActiveRecord::Migration
  def change
    add_column :users, :password_digest, :string
  end
end
Cool Guy Yo
  • 5,910
  • 14
  • 59
  • 89

2 Answers2

2

You have a typo in the first line, first word (raClass). It should be:

 Class AddPasswordDigestToUsers < ActiveRecord::Migration
      def change
        add_column :users, :password_digest, :string
      end
    end
Zippie
  • 6,018
  • 6
  • 31
  • 46
0

Try using "class" instead of "Class"...

Alex
  • 2,398
  • 1
  • 16
  • 30