aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/generators.md
diff options
context:
space:
mode:
authorGreg Navis <contact@gregnavis.com>2017-05-13 03:09:58 +0200
committerGreg Navis <contact@gregnavis.com>2017-11-30 10:46:38 +0100
commit1dca75c2c8f930b58d86cd2216af5e14307b3e53 (patch)
tree2c124dd35e87e3fc27448751e9d4001dd7e90fa5 /guides/source/generators.md
parent1bee2fb600c07625b830afd33b43ead3364c9715 (diff)
downloadrails-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 'guides/source/generators.md')
0 files changed, 0 insertions, 0 deletions