Skip to content

Commit

Permalink
Merge pull request #32310 from sodabrew/mysql2-0.4-0.5
Browse files Browse the repository at this point in the history
Support mysql2 0.4.x and 0.5.x
  • Loading branch information
kamipo committed Mar 21, 2018
2 parents 627ef06 + 9f5477a commit 7e06d9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "active_record/connection_adapters/abstract_mysql_adapter"
require "active_record/connection_adapters/mysql/database_statements"

gem "mysql2", "~> 0.4.4"
gem "mysql2", ">= 0.4.4", "< 0.6.0"
require "mysql2"

module ActiveRecord
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/app_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def rails_version_specifier(gem_version = Rails.gem_version)
def gem_for_database
# %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
case options[:database]
when "mysql" then ["mysql2", ["~> 0.4.4"]]
when "mysql" then ["mysql2", [">= 0.4.4", "< 0.6.0"]]
when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
when "frontbase" then ["ruby-frontbase", nil]
Expand Down

0 comments on commit 7e06d9c

Please sign in to comment.