Rake db:migrate error
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?
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
链接地址: http://www.djcxy.com/p/35988.html
上一篇: rake db之间的区别:migrate db:reset和db:schema:load
下一篇: Rake db:迁移错误
