Skip to main content

SQL to ActiveRecord Converters

Pick the SQL you are translating. Each page shows the ActiveRecord code, the SQL Rails really generates, and the mistakes that change your results. Examples were run on Rails 8.1.1 and PostgreSQL 16.

By SQL feature

By statement type