Rails 6.1

Rails 6.1

Rails 6.1 allows enums attributes to configure the default value

Before Rails 6.1 the enum default were configured on the database level but now Rails 6.1 allows to configure the enum defaults on the model.

Read
Rails 6.1

Rails 6.1 adds support for where with a comparison operator

Before Rails 6.1 to add comparison operators in where clause you need to use raw SQL notation. Rails 6.1 adds support for where clause with comparison operator.

Read
Rails 6.1

Rails 6.1 tracks Active Storage variant in the database

Active Storage reduces the latency by tracking the Active Storage variants in the database.

Read
Rails 6.1

Rails 6.1 introduces class_names helper

Rails 6.1 makes it easier to add conditional class names to the HTML element.

Read
Rails 6.1

Rails 6.1 adds *_previously_was attribute methods

Rails 6.1 dirty tracks the previous attribute value after the model is saved or reset.

Read