diff --git a/Gemfile b/Gemfile index 6dc1eecb402..3b6add51aab 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,7 @@ group :backend, :frontend, :core, :api do when /postgres/ gem 'pg', '~> 1.0', require: false else - gem 'sqlite3', require: false + gem 'sqlite3', '~> 1.3.6', require: false gem 'fast_sqlite', require: false end end diff --git a/lib/sandbox.sh b/lib/sandbox.sh index 43c53afd28c..3a8058ac328 100755 --- a/lib/sandbox.sh +++ b/lib/sandbox.sh @@ -49,6 +49,10 @@ group :test, :development do end RUBY +# Ensure sqlite3 version to match ActiveRecord SQLite adapter requirement +# (see https://github.com/solidusio/solidus/issues/3087 for details) +sed -i "/gem 'sqlite3'/c\gem 'sqlite3', '~> 1.3.6'" Gemfile + bundle install --gemfile Gemfile bundle exec rake db:drop db:create bundle exec rails g spree:install --auto-accept --user_class=Spree::User --enforce_available_locales=true