Skip to content

Commit

Permalink
[CI] Minor improvement on ENV['DB'] handling for future enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Apr 20, 2024
1 parent 238b5ba commit 90715e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gemfile
Expand Up @@ -39,14 +39,16 @@ platforms :ruby do
gem 'pg', rails_version >= '5.1' ? '>= 1.0.0' : '< 1.0.0', require: false
when 'mysql'
gem 'mysql2', rails_version >= '4.2' ? '>= 0.4' : '< 0.4', require: false
else
when 'sqlite3', nil
if rails_version <= '5.0'
gem 'sqlite3', '< 1.4', require: false
elsif (rails_version <= '8') || (RUBY_VERSION < '3')
gem 'sqlite3', '< 2', require: false
else
gem 'sqlite3', require: false
end
else
raise "Unknown DB: #{ENV['DB']}"
end
end

Expand Down

0 comments on commit 90715e7

Please sign in to comment.