Ruby on Rails 6.0

Ruby on Rails 6.0 is here, and it’s action-packed!

Chris Stewart
© Shutterstock / Andres Sonne

It’s been a long time coming and it looks like it was worth the wait! Ruby on Rails 6 brings a whole heap of changes with it. In addition to fixes and improvements, there’s also Action Mailbox, Action Text, Parallel Testing, multiple databases & more. Let’s take a closer look.

A new version of open source framework Ruby on Rails has been released, and it’s got a bunch of new features. We’ve outlined the biggest changes below.

Two new frameworks

Action Mailbox allows incoming emails to be routed to controller-like mailboxes for processing in Rails. It comes with ingresses for Amazon SES, Mailgun, Mandrill, Postmark, and SendGrid, and can also deal with inbound emails directly with the built-in Exim, Postfix, and Qmail ingresses.

Another new framework, Action Text, means rich text content and editing are now possible in Rails. It also includes Basecamp’s Trix editor, and any rich text content created by it is saved in its own RichText model that’s associated with any existing Active Record model in the application. Embedded images and other attachments are stored using Active Storage and associated with the RichText model.

Parallel Testing

This feature allows the test suite to be parallelized, reducing the amount of time necessary to run a test suite and helping users get the most out of their CPU cores. Forking processes is the default technique, but threading is also supported.

Multiple database support

A single application can now connect to multiple databases at the same time. This is made possible by a new API in Active Record that can switch connections between multiple databases. This means it’s now possible to segment certain records into their own databases for scaling or isolation, for example.

SEE ALSO: The Limitations of Machine Learning

Other changes

One of the minor changes is the work on the Action Cable test cable. Action Cable JavaScript was rewritten in ES6, and Action Cable tests and DNS rebinding attack protection were improved. In addition, the new Rails version now requires Ruby 2.5.

For more information, read the Ruby on Rails 6 release notes here.

Chris Stewart
Chris Stewart is an Online Editor for He studied French at Somerville College, Oxford before moving to Germany in 2011. He speaks too many languages, writes a blog, and dabbles in card tricks.

Inline Feedbacks
View all comments