Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-07-22 18:39:30 +0300
committerStan Hu <stanhu@gmail.com>2019-07-23 17:13:32 +0300
commitc25ef8ee4a0f480603d7582648cc15f874d61172 (patch)
tree43b42ffb9134a2dd17a600a1b7e4f2ad4c9a8dee /db/migrate/20190206193120_add_index_to_tags.rb
parentb5cc47bda6cefc1aa75e9e388f656609246ca326 (diff)
Remove PostgreSQL opclasses monkey patch
This is no longer needed with Rails 5.2. opclass is the attribute used per https://github.com/rails/rails/pull/19090/files. Now that we've removed the monkey patch and restored the Rails schema dumper, it appears Rails has dropped the inclusion of `using: :btree` as well (https://github.com/rails/rails/pull/27981). Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64529
Diffstat (limited to 'db/migrate/20190206193120_add_index_to_tags.rb')
-rw-r--r--db/migrate/20190206193120_add_index_to_tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20190206193120_add_index_to_tags.rb b/db/migrate/20190206193120_add_index_to_tags.rb
index 5257ebba003..d6c0270cb4f 100644
--- a/db/migrate/20190206193120_add_index_to_tags.rb
+++ b/db/migrate/20190206193120_add_index_to_tags.rb
@@ -9,7 +9,7 @@ class AddIndexToTags < ActiveRecord::Migration[5.0]
disable_ddl_transaction!
def up
- add_concurrent_index :tags, :name, name: INDEX_NAME, using: :gin, opclasses: { name: :gin_trgm_ops }
+ add_concurrent_index :tags, :name, name: INDEX_NAME, using: :gin, opclass: { name: :gin_trgm_ops }
end
def down