Skip to content

Commit

Permalink
[CI] Rails < 8 doesn't support sqlite3 2.x and sqlite3 2.x doesn't su…
Browse files Browse the repository at this point in the history
…pport Ruby 2.x
  • Loading branch information
amatsuda committed Apr 20, 2024
1 parent 9182d06 commit 238b5ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gemfile
Expand Up @@ -40,7 +40,13 @@ platforms :ruby do
when 'mysql'
gem 'mysql2', rails_version >= '4.2' ? '>= 0.4' : '< 0.4', require: false
else
gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4', require: false
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
end
end

Expand Down

0 comments on commit 238b5ba

Please sign in to comment.