Merge branch '8784-dir-listings'
[arvados.git] / services / api / db / migrate / 20130113214204_add_index_to_collections_and_metadata.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class AddIndexToCollectionsAndMetadata < ActiveRecord::Migration
6   def up
7     add_index :collections, :uuid, :unique => true
8     add_index :metadata, :uuid, :unique => true
9   end
10   def down
11     remove_index :metadata, :uuid
12     remove_index :collections, :uuid
13   end
14 end