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
  • Loading branch information
amatsuda committed Jul 10, 2024
1 parent 551e547 commit 11d0656
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 @@ -31,5 +31,11 @@ when 'mysql'
gem 'mysql2'
end
else
gem 'sqlite3', rails_version <= '5.0' ? '< 1.4' : '>= 1.4'
if rails_version <= '5.0'
gem 'sqlite3', '< 1.4'
elsif (rails_version <= '8') || (RUBY_VERSION < '3')
gem 'sqlite3', '< 2'
else
gem 'sqlite3'
end
end

0 comments on commit 11d0656

Please sign in to comment.