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