diff options
author | Greg Navis <contact@gregnavis.com> | 2017-05-13 03:09:58 +0200 |
---|---|---|
committer | Greg Navis <contact@gregnavis.com> | 2017-11-30 10:46:38 +0100 |
commit | 1dca75c2c8f930b58d86cd2216af5e14307b3e53 (patch) | |
tree | 2c124dd35e87e3fc27448751e9d4001dd7e90fa5 /actioncable/test/client_test.rb | |
parent | 1bee2fb600c07625b830afd33b43ead3364c9715 (diff) | |
download | rails-1dca75c2c8f930b58d86cd2216af5e14307b3e53.tar.gz rails-1dca75c2c8f930b58d86cd2216af5e14307b3e53.tar.bz2 rails-1dca75c2c8f930b58d86cd2216af5e14307b3e53.zip |
Add support for PostgreSQL operator classes to add_index
Add support for specifying non-default operator classes in PostgreSQL
indexes. An example CREATE INDEX query that becomes possible is:
CREATE INDEX users_name ON users USING gist (name gist_trgm_ops);
Previously it was possible to specify the `gist` index but not the
custom operator class. The `add_index` call for the above query is:
add_index :users, :name, using: :gist, opclasses: {name: :gist_trgm_ops}
Diffstat (limited to 'actioncable/test/client_test.rb')
0 files changed, 0 insertions, 0 deletions