Modern CSS with Tailwind: can’t setup the Rails source code

I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps.

With:
ruby-3.0.0
sqlite3 3.24.0

bin/setup
[...]
== Preparing database ==
rails aborted!
NoMethodError: undefined method `enums' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x00007fcb7049a1e0

rails s starts up, but i get:

ActionView::SyntaxErrorInTemplate in HomeController#intro

Encountered a syntax error while rendering template: check <%# Version 1 %>