14008: Merge branch 'master' into 14008-containers-index
[arvados.git] / services / api / db / migrate / 20180608123145_add_properties_to_groups.rb
index a969456423845cabd1f72ef36d0971f2e7b8d57e..12c6696c609da2bddda5cebe26407b58a7772404 100644 (file)
@@ -1,7 +1,14 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+require './db/migrate/20161213172944_full_text_search_indexes'
+
 class AddPropertiesToGroups < ActiveRecord::Migration
   def up
     add_column :groups, :properties, :jsonb, default: {}
     ActiveRecord::Base.connection.execute("CREATE INDEX group_index_on_properties ON groups USING gin (properties);")
+    FullTextSearchIndexes.new.replace_index('groups')
   end
 
   def down