Reputation: 11
I'm getting this error when running rake db:migrate
rake aborted!
Please install the mysql adapter: gem install activerecord-mysql-adapter
(mysql is not part of the bundle. Add it to Gemfile.)
Tasks: TOP => db:migrate => environment
Any ideas about it?
Upvotes: 1
Views: 2531
Reputation: 107728
You will need to add the mysql2
gem to your Gemfile
:
gem 'mysql2'
And also use the mysql2
adapter in your config/database.yml
:
adapter: mysql2
Upvotes: 3