Rails 7.1 Released: Dockerfiles, Authentication Helpers and Async Queries
Rails 7.1 generated production Dockerfiles for new apps, added build-your-own authentication helpers, expanded async Active Record queries, and added the Trilogy MySQL adapter.
Historical Archive. This article documents an event from 2023 and is preserved with its original date for reference. It is not current news, and details may have changed since publication.
What happened
Rails 7.1 was released on October 5, 2023, according to the official announcement on the Ruby on Rails blog by Rafael Franca, timed to the start of the first Rails World conference and the framework's 20th anniversary. The release included over five thousand commits from more than 800 contributors since Rails 7.0.
Dockerfiles and deployment
Rails 7.1 began generating all the Dockerfiles needed to deploy an application when running rails new, tuned for production with proper caching layers, multi-stage builds to minimise image size, and dependencies for JavaScript build environments where needed. These laid groundwork for Docker-based deployment tools such as Kamal, which would become central in Rails 8.
Build-your-own authentication
To complement has_secure_password, Rails 7.1 added helpers for building custom authentication. The normalizes declaration normalises attributes such as email before saving, authenticate_by protects against timing attacks during authentication, and generates_token_for creates single-use tokens for features like password reset and email confirmation. has_secure_password could also now automatically verify the current password when updating it via a password challenge.
Async queries and other features
The release vastly expanded asynchronous Active Record queries with methods such as async_count, async_sum and async_pluck, making it easier to run slow calculation queries in parallel. It also added built-in support for the Trilogy MySQL adapter created by GitHub, full support for composite primary keys, the perform_all_later method to enqueue large numbers of jobs efficiently, new autoload_lib configuration, and support for generating apps with Bun as the JavaScript runtime.
Why it mattered
Rails 7.1 strengthened Rails as a batteries-included framework for modern deployment and security. The generated Dockerfiles and authentication helpers in particular gave developers production-ready starting points that reduced reliance on external services and vendors, themes the following Rails 8 release would take much further.
Related on Skillo
See also: Rails 7.0 and the no-Node front end, Rails 8.0's Solid adapters and Kamal.
Sources
Published date reflects the original event date (2023-10-05). This article is original Skillo editorial written from the sources above; facts were verified in September 2026.
Written by
Skillo Staff
0 Comments
Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.