Rails 6

Rails 6

Rails 6 adds ActiveRecord::Relation#annotate

Rails 6 allow adding comments to the SQL queries generated by the ActiveRecord::Relation instance.

Read
Rails 6

Rails 6 adds delete_by, destroy_by ActiveRecord::Relation

Rails 6 adds delete_by, destroy_by methods to find and destroy/delete ActiveRecord::Relation records.

Read
Rails 6

Rails 6 adds negative scopes on enum

Rails 6 now by default adds negative enum scopes to filter records easily.

Read