Distinguish mysql/mysql2 adapters in Gemfile (#13270).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11494 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a5c05435ab
commit
953b3619d4
9
Gemfile
9
Gemfile
|
@ -45,10 +45,11 @@ if File.exist?(database_file)
|
||||||
if adapters.any?
|
if adapters.any?
|
||||||
adapters.each do |adapter|
|
adapters.each do |adapter|
|
||||||
case adapter
|
case adapter
|
||||||
when /mysql/
|
when 'mysql2'
|
||||||
gem "mysql", "~> 2.8.1", :platforms => [:mri_18, :mingw_18]
|
gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
|
||||||
mysql2_platforms = RUBY_VERSION >= '2.0' ? [:mri_20, :mingw_20] : [:mri_19, :mingw_19]
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
||||||
gem "mysql2", "~> 0.3.11", :platforms => mysql2_platforms
|
when 'mysql'
|
||||||
|
gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
|
||||||
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
||||||
when /postgresql/
|
when /postgresql/
|
||||||
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
|
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
|
||||||
|
|
Loading…
Reference in New Issue