I had trouble running the new TimestampsNotNull migration, because I
ran into the index name limit described in the migration comments.
Running this migration first worked around the problem for me, and I
hope it saves others from tripping over it too.
--- /dev/null
+class RenameAuthKeysUserIndex < ActiveRecord::Migration
+ # Rails' default name for this index is so long, Rails can't modify
+ # the index later, because the autogenerated temporary name exceeds
+ # PostgreSQL's 64-character limit. This migration gives the index
+ # an explicit name to work around that issue.
+ def change
+ rename_index("authorized_keys",
+ "index_authorized_keys_on_authorized_user_uuid_and_expires_at",
+ "index_authkeys_on_user_and_expires_at")
+ end
+end
t.datetime "updated_at", :null => false
end
- add_index "authorized_keys", ["authorized_user_uuid", "expires_at"], :name => "index_authorized_keys_on_authorized_user_uuid_and_expires_at"
+ add_index "authorized_keys", ["authorized_user_uuid", "expires_at"], :name => "index_authkeys_on_user_and_expires_at"
add_index "authorized_keys", ["uuid"], :name => "index_authorized_keys_on_uuid", :unique => true
create_table "collections", :force => true do |t|