Rails

Rails form_with Defaults to Non-Remote

Rails form generation helper, "form_with" defaulted to remote forms previously.

Rails 6.1 Adds Check Constraints Support

Rails 6.1 adds check_constraint, add_check_constraint, and remove_check_constraint to migrations, replacing raw SQL for database constraints.

Rails 6.1 Role Switching and Sharding

Rails 6.1 has added support for switching connections for one database instead of all databases

Rails 6.1 Background Dependent Destruction

Rails 6.1 adds dependent: :destroy_async to delete associated records in background jobs.

Rails 6.1 Configurable Attribute Defaults

With Rails 6.1, we can set attribute's default value by keeping the type same

Rails Deprecates db:structure Tasks

Rails deprecates db:structure:load and db:structure:dump tasks in favor of db:schema tasks with schema_format config.

Rails Allows Prepending Concerns

This blog post discusses the concept of prepending in Ruby and prepending concerns with the help of Active Support in Rails.

Rails Adds Default Value to Rich Text Area

Rails has added support for adding a default value to the form field of type rich text area.

Rails db:migrate:name Behavior Changes

Rails now dumps schema and resets ActiveRecord::Base connection when running db:migrate:name.

Rails Adds --minimal Flag for New Apps

Rails introduces --minimal flag to generate a barebones application without extra frameworks.