Skip to content

Commit

Permalink
[CI] Rails 8 doesn't support sqlite3 2.x and sqlite3 2.x doesn't supp…
Browse files Browse the repository at this point in the history
…ort Ruby 2.x
  • Loading branch information
amatsuda committed Apr 19, 2024
1 parent b099832 commit 38e0d91
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ end
rails_version = ENV['RAILS_VERSION'] || '∞'

platforms :ruby do
gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4'
if rails_version <= '5.0'
gem 'sqlite3', '< 1.4'
elsif (ENV['RAILS_VERSION'] <= '8') || (RUBY_VERSION < '3')
gem 'sqlite3', '< 2'
else
gem 'sqlite3'
end
end
platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
Expand Down

0 comments on commit 38e0d91

Please sign in to comment.