1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Set sqlite3 gem version explicitly in generated Gemfile

This commit is contained in:
Sergey Ponomarev 2019-02-05 11:56:32 -05:00
parent 287920ca7d
commit d9601fd622
No known key found for this signature in database
GPG key ID: E450C9308249D501
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,7 @@ module Rails
case database
when "mysql" then ["mysql2", [">= 0.4.4"]]
when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
when "sqlite3" then ["sqlite3", ["~> 1.3", ">= 1.3.6"]]
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
when "frontbase" then ["ruby-frontbase", nil]
when "sqlserver" then ["activerecord-sqlserver-adapter", nil]

View file

@ -526,7 +526,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
if defined?(JRUBY_VERSION)
assert_gem "activerecord-jdbcsqlite3-adapter"
else
assert_gem "sqlite3"
assert_gem "sqlite3", "'~> 1.3', '>= 1.3.6'"
end
end