Open thspower opened 2 weeks ago
Solved for now by specifying activerecord, ~7 in Gemfile.
gem 'sinatra-activerecord'
gem 'activerecord', '~> 7'
For me it is no longer working even using gem 'activerecord', '~> 7'
on Gemfile
.
I also updated Ruby from version 3.3.5 to 3.3.6.
But I think the problem started when I updated Rails and some associated gems from version 7.2 to 8.0.
I'll try to do some tests in a VM or container to see if I can identify exactly what causes the problem and how to revert it.
It seems that something in Ruby 3.3.6 or some other gem that comes with it is aggravating the problem. After reinstalling Ruby 3.3.5 and changing the Gemfile to
source "https://rubygems.org"
ruby '3.3.5'
gem 'sinatra'
gem 'activerecord', '~> 7.2'
gem 'sinatra-activerecord'
gem 'sqlite3'
gem 'rake'
it seems that the sinatra-activerecord
gem and the rake db:something
commands are working again.
Any idea when sinatra-activerecord will work with Active Record 8?
Is the problem only with Active Record 8 or is there some other problem with Ruby 3.3.6?
Fresh install.
Error:
Gemfile
Installation
Seems similar to this issue.