I have an existing Rails project which I created in API mode, using no DB. Upon trying to deploy to Heroku, I am getting lots of ActiveRecord related errors.
--
To replicate the skip-active-record
setup in an existing project, follow the steps in this answer
PLUS
REMOVE config/environments/development.rb -> config.active_storage.service = :local
REMOVE config/environments/production.rb -> config.active_storage.service = :local
REMOVE config/environments/test.rb -> config.active_storage.service = :local
REMOVE bin/setup -> puts "\n== Preparing database =="
system! 'bin/rails db:prepare'
DELETE config/storage.yml
REMOVE test/test_helper.rb # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all