8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20140421151939_rename_auth_keys_user_index.rb
1 class RenameAuthKeysUserIndex < ActiveRecord::Migration
2   # Rails' default name for this index is so long, Rails can't modify
3   # the index later, because the autogenerated temporary name exceeds
4   # PostgreSQL's 64-character limit.  This migration gives the index
5   # an explicit name to work around that issue.
6   def change
7     rename_index("authorized_keys",
8                  "index_authorized_keys_on_authorized_user_uuid_and_expires_at",
9                  "index_authkeys_on_user_and_expires_at")
10   end
11 end