The operator classes identify database operators to be used by the index for the columns. You can assign the same operator to all columns, or not. It currently only supports PostgreSQL.
Normally, PostgresSQL verifies that all rows in a table satisfy its foreign keys constraints. With this option, you can create these constraints without the overhead of checking if they are valid.
The helper creates a link tag with the preload keyword that allows you to basically define resources that pages will need very soon after loading. In addition, Rails will send HTTP2 Early Hints if the proxy server supports it, helping the fetch process.
An error will be raised when defining scopes with names already defined by ActiveRecord::Relation instance methods.
Wrapping Up
That's it for this week, as always, we couldn't cover all of the changes, but feel free to check the commits. If you'd like to join them, check out the list of open issues. Until next week!
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA