New PostgreSQL features for Rails 5.2 beta

New PostgreSQL features for Rails 5.2 beta
Average rating: 0
(0 votes)

Thanks! You’ve rated this material!

In the end of November 2017 Rails 5.2.0 beta was released. Apart from many great improvements and new features, Active Storage, Redis Cache Store, HTTP/2 Early Hints, CSP, Credentials and more, now we received new PostgreSQL features for Rails 5.2 beta.

There are two features of PostgreSQL we’d like to share with you:

  1. Add support for PostgreSQL operator classes to add_index
    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.
  2. Add ability to create PostgreSQL foreign keys without validation
    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.

Rate this article, if you like it

Thanks! You’ve rated this material!

Got a project? Let's discuss it!

*By submitting this form you agree with our Privacy Policy.

Mailing & Legal Address

Syndicode Inc. 340 S Lemon Ave #3299, Walnut CA, 91789, USA

Visiting & Headquarters address
Kyiv Sofiivska 1/2a, 01001, Kyiv, Ukraine
Dnipro Hlinky 2, of. 1003, 49000, Dnipro, Ukraine
Email info@syndicode.com
Phone (+1) 9035021111