diff --git a/Gemfile b/Gemfile index 655d055f58..3e715fd08c 100644 --- a/Gemfile +++ b/Gemfile @@ -4,15 +4,7 @@ source "https://rubygems.org" gemspec rails_version = ENV.fetch("RAILS_VERSION", 7.0).to_f -# Necessary until a new 6.1.5 version has been released -# https://github.com/rails/rails/pull/44691 -if rails_version.to_s.match?(/6.1/) - gem "rails", git: "https://github.com/rails/rails", branch: "6-1-stable" -elsif rails_version.to_s.match?(/7.0/) - gem "rails", git: "https://github.com/rails/rails", branch: "7-0-stable" -else - gem "rails", "~> #{rails_version}.0" -end +gem "rails", "~> #{rails_version}.0" if ENV["DB"].nil? || ENV["DB"] == "sqlite" gem "sqlite3", "~> 1.4.1"