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.
7 rename_index("authorized_keys",
8 "index_authorized_keys_on_authorized_user_uuid_and_expires_at",
9 "index_authkeys_on_user_and_expires_at")