Ruby on Rails 6.0 is here, and it’s action-packed!
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.
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
For more information, read the Ruby on Rails 6 release notes here.