2754: Add migration missing from commit:fe84c84827af6092784408629e4cde0663fe6af8
[arvados.git] / services / api / db / migrate / 20130612042554_add_name_unique_index_to_repositories.rb
1 class AddNameUniqueIndexToRepositories < ActiveRecord::Migration
2   def up
3     remove_index :repositories, :name
4     add_index :repositories, :name, :unique => true
5   end
6
7   def down
8     remove_index :repositories, :name
9     add_index :repositories, :name
10   end
11 end