Skip to content

Commit 3d83651

Browse files
committed
[CI] Rails < 8 doesn't support sqlite3 2.x and sqlite3 2.x doesn't support Ruby 2.x
1 parent b099832 commit 3d83651

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ end
1616
rails_version = ENV['RAILS_VERSION'] || '∞'
1717

1818
platforms :ruby do
19-
gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4'
19+
if rails_version <= '5.0'
20+
gem 'sqlite3', '< 1.4'
21+
elsif (ENV['RAILS_VERSION'] <= '8') || (RUBY_VERSION < '3')
22+
gem 'sqlite3', '< 2'
23+
else
24+
gem 'sqlite3'
25+
end
2026
end
2127
platforms :jruby do
2228
gem 'activerecord-jdbcsqlite3-adapter'

0 commit comments

Comments
 (0)