14873: Marks past migrations with version 4.2
[arvados.git] / services / api / db / migrate / 20171212153352_add_gin_index_to_collection_properties.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class AddGinIndexToCollectionProperties < ActiveRecord::Migration[4.2]
6   def up
7     ActiveRecord::Base.connection.execute("CREATE INDEX collection_index_on_properties ON collections USING gin (properties);")
8   end
9   def down
10     ActiveRecord::Base.connection.execute("DROP INDEX collection_index_on_properties")
11   end
12 end