Merge branch '14152-s3-v4-signature'
[arvados.git] / services / api / db / migrate / 20180824152014_add_md5_index_to_containers.rb
1 class AddMd5IndexToContainers < ActiveRecord::Migration
2   def up
3     ActiveRecord::Base.connection.execute 'CREATE INDEX index_containers_on_reuse_columns on containers (md5(command), cwd, md5(environment), output_path, container_image, md5(mounts), secret_mounts_md5, md5(runtime_constraints))'
4   end
5   def down
6     ActiveRecord::Base.connection.execute 'DROP INDEX index_containers_on_reuse_columns'
7   end
8 end