I'm not a huge fan of rails but, you can generate apps that don't include active record example of all the flags you can pass to rails when initializing a projects.
--skip-git Skip git init, .gitignore, and .gitattributes
--skip-keeps Skip source control .keep files
--skip-action-mailer Skip Action Mailer files
--skip-action-mailbox Skip Action Mailbox gem
--skip-action-text Skip Action Text gem
--skip-active-record Skip Active Record files
--skip-active-job Skip Active Job
--skip-active-storage Skip Active Storage files
--skip-action-cable Skip Action Cable files
--skip-asset-pipeline Skip Asset Pipeline
--skip-javascript Skip JavaScript files
--skip-hotwire Skip Hotwire integration
--skip-jbuilder Skip jbuilder gem
--skip-test Skip test files
--skip-system-test Skip system test files
--skip-bootsnap Skip bootsnap gem