Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[arvados.git] / services / api / db / migrate / 20130611163736_rename_authorized_key_authorized_user_to_authorized_user_uuid.rb
1 class RenameAuthorizedKeyAuthorizedUserToAuthorizedUserUuid < ActiveRecord::Migration
2   def up
3     remove_index :authorized_keys, [:authorized_user, :expires_at]
4     rename_column :authorized_keys, :authorized_user, :authorized_user_uuid
5     add_index :authorized_keys, [:authorized_user_uuid, :expires_at]
6   end
7
8   def down
9     remove_index :authorized_keys, [:authorized_user_uuid, :expires_at]
10     rename_column :authorized_keys, :authorized_user_uuid, :authorized_user
11     add_index :authorized_keys, [:authorized_user, :expires_at]
12   end
13 end