Rails

Rails has added a benchmark generator

Rails has added a benchmark generator for scripts to benchmark Rails application.

Rails if_exists/if_not_exists Migrations

Rails adds support for if_exists/if_not_exists on remove_column/add_column in migrations to silently ignore migrations

Rails 6 adds rails db:system:change command

Rails 6 adds rails db:system:change command to allow switching database configuration

Rails 6 ActiveSupport Unicode Deprecations

Rails 6 has deprecated methods in Unicode and Chars support for ActiveSupport in favor of using ruby 2.3+ String methods directly.

Rails 6.1 Adds Multiple Storage Services

Rails 6.1 adds support to configure storage services for individual attachment.

Rails Adds Relation#annotate for SQL Comments

Rails adds ActiveRecord::Relation#annotate for adding SQL comments to ActiveRecord::Relation queries

Rails 6.1 where.missing to Find Orphan Records

Rails 6.1 adds where.missing query method to easily find records with missing associations.

Webpacker is the new default in Rails 6

Webpacker is the new default JavaScript compiler instead of Sprockets in Rails 6

Fixing N+1 Queries in Active Record

Overcome N+1 issues in Active Record using includes, preload, eager_load, pluck, select, and exists? methods.

Rails 6 Adds Ability to Block Database Writes

Rails 6 adds the ability to block writes to a database even if the database user is able to write using connection.while_preventing_writes