Skip to content

Commit

Permalink
Allow specifying sqlite version
Browse files Browse the repository at this point in the history
Older versions of activerecord require sqlite ~> 1.3.6, but not in the
gemfile, the constraint is enforced when you load the adapter.

This allows us toe specify in the environment the version of the gem
we'd like to run against.
  • Loading branch information
jarednorman committed Apr 22, 2019
1 parent e098680 commit b443fd9
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
@@ -1,6 +1,12 @@
source 'https://rubygems.org'

gem 'sqlite3', platforms: [:ruby]
sqlite = ENV['SQLITE_VERSION']

if sqlite
gem 'sqlite3', sqlite, platforms: [:ruby]
else
gem 'sqlite3', platforms: [:ruby]
end

platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
Expand Down

0 comments on commit b443fd9

Please sign in to comment.