Same app as https://github.com/jrochkind/rails7_sti_bug_demo, but in Rails 6.1 -- demonstrates that same steps do not raise error here.
- ./bin/rails db:reset
- ./bin/rails runner "Car.create!(title: 'honda')"
- ./bin/rails runner "Car"
Does NOT raise exception, that is raised in Rails 7.0 version.
./bin/rails runner ./scripts/reference_car.rb
Gets to Made it past with no exception
, when Rails 7.0 version does not.