Try using $ bundle exec rake db:migrate that ensures that the versions from the Gemfile are used. Check your Gemfile if you have the right versions installed. To be sure run $ bundle install before running db:migrate.