ce2403e743578f272f34cf360dfb544dc6f2132c
[arvados.git] / services / api / db / migrate / 20171212153352_add_gin_index_to_collection_properties.rb
1 class AddGinIndexToCollectionProperties < ActiveRecord::Migration
2   def up
3     ActiveRecord::Base.connection.execute("CREATE INDEX collection_index_on_properties ON collections USING gin (properties);")
4   end
5   def down
6     ActiveRecord::Base.connection.execute("DROP INDEX collection_index_on_properties")
7   end
8 end