Skip to content

Commit

Permalink
Update Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
brendon committed Nov 14, 2024
1 parent 95a61b4 commit 92b388f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ if ENV["RAILS_VERSION"]
end

case ENV["DB"]
when 'sqlite'
gem "sqlite3"
when 'postgresql'
gem "pg"
when "sqlite"
if ENV["RAILS_VERSION"] &&
Gem::Version.new(ENV["RAILS_VERSION"]) >= Gem::Version.new("7.2")
gem "sqlite3", "~> 2.2.0"
else
gem "sqlite3", "~> 1.7.2"
end
when "postgresql"
gem "pg", "~> 1.5.5"
else
gem "mysql2"
gem "mysql2", "~> 0.5.6"
end

0 comments on commit 92b388f

Please sign in to comment.