The amount of SQL hatred from rails learning resources is unjustifiable.
If you're dealing with a relational database with SQL as its primary interface, you'll end up learning SQL eventually because all abstractions leak!
Which is bizarre cause you pretty much need some form of RDBs in most of the apps. And because of ANSI SQL, the syntax/concepts are relatively same on different databases too. No point in not making this investment.
• syntactic sugar and language/tooling integration for very common operations;
• a centralized data access API to build upon, that you would have to create anyway with raw SQL;
• a single introspectable source of truth you can use to generate web API, models, data validation/migration and so on.
Eventually, even using an ORM, you will need to learn SQL if you go beyond the toy project.
It's like learning HTML via React.
I've seen raw SQL queries full of fatal SQL injection bugs like these in littered in codebases, very cringeworthy.
For bad workplaces just using an ORM is a lot safer though, I agree. Performance can quickly become an issue when people stop thinking entirely about the DB level operations happening, and this comes up much quicker at workplaces where not enough people care.
The answer to this question lies in the assumption you make in this statement:
> the one which every engineer already knows: SQL.
Not every engineer knows, or wants to learn, SQL. I've met very competent engineers, SMEs over their particular system, who were flummoxed by SQL. And many more just want to work in their preferred language. I don't like ORMs either but, like, half the reason why they exist is so the programmer can talk to the RDBMS in Java, JavaScript, etc. and not touch SQL.