if adapters.any?
adapters.each do |adapter|
case adapter
- when /mysql/
- gem "mysql", "~> 2.8.1", :platforms => [:mri_18, :mingw_18]
- gem "mysql2", "~> 0.3.11", :platforms => [:mri_19, :mingw_19]
+ when 'mysql2'
+ gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
+ gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
+ when 'mysql'
+ gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
when /postgresql/
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]