Ruby on Rails

Current release: 8.0.5.1, released 29 July 2026.

What it is

Ruby on Rails, commonly called Rails, is an open-source web application framework written in Ruby. It follows a convention-over-configuration approach, providing established defaults for application structure, database access, routing, server-rendered views, background work, testing, security protections, and common web development tasks. Its integrated design can make it productive for teams building database-backed web applications, especially when they benefit from a coherent set of conventions rather than selecting and assembling many separate libraries.

History

Rails emerged from work on a commercial web application and helped popularize ideas such as convention over configuration, the active record pattern, database migrations, and opinionated full-stack development in the wider web ecosystem. Early Rails emphasized rapid development of traditional server-rendered applications backed by relational databases. Over time, it added stronger security defaults, richer testing and operational tooling, support for modern JavaScript delivery patterns, APIs, background processing integrations, real-time features, and deployment approaches suited to containerized and cloud-hosted environments. Although the surrounding Ruby ecosystem and frontend practices have changed substantially, Rails has remained focused on providing an integrated framework for building and maintaining web applications.

Migration notes

Migrating to Rails is often easiest when an existing application has conventional relational data, clear business-domain models, and requirements that fit server-rendered pages or a straightforward JSON API. The main work is usually not translating HTTP endpoints but redesigning persistence, validation, authorization, background jobs, file handling, email, caching, and operational behavior around Rails conventions. Active Record can be productive, but applications with database-specific SQL, unusual schemas, stored-procedure-heavy designs, multiple databases, or carefully tuned query behavior may need explicit adapters, custom SQL, and extensive performance testing. Teams also need Ruby expertise and must account for dependency compatibility, native extension builds, asset and JavaScript tooling, secrets management, job queues, cache stores, deployment processes, and observability.

Migrating away from Rails can be complicated because a typical application may rely on tightly integrated framework components and conventions rather than clearly separated service boundaries. Models can combine persistence, validation, callbacks, authorization hooks, domain logic, serialization, and lifecycle behavior; moving that behavior requires careful discovery and incremental extraction. Database migrations and Active Record conventions may have shaped schema names, association tables, polymorphic relationships, serialized fields, and timestamp behavior in ways that do not map directly to another framework or ORM. Applications may also depend on Rails-specific session formats, signed and encrypted cookies, routing conventions, mailers, job payloads, caching keys, real-time channels, attachment systems, and test helpers. A safer migration plan usually inventories these dependencies, establishes contract tests around externally visible behavior, separates domain logic from framework callbacks where feasible, and moves interfaces or bounded parts of the system incrementally while keeping data consistency, authentication, and asynchronous processing under close control.

Release history

8.x

7.x

Version support status

Ruby on Rails version support status by cycle
CycleStatusDate
Ruby on Rails 8.1SupportedSupport ends 10 October 2026
Ruby on Rails 8.0SupportedSupport ends 7 May 2026
Ruby on Rails 7.2End of lifeEOL 9 August 2026
Ruby on Rails 7.1End of lifeEOL 1 October 2025
Ruby on Rails 7.0End of lifeEOL 1 April 2025
Ruby on Rails 6.1End of lifeEOL 1 October 2024
Ruby on Rails 6.0End of lifeEOL 1 June 2023
Ruby on Rails 5.2End of lifeEOL 1 June 2022
Ruby on Rails 5.1End of lifeEOL 25 August 2019