braintree / pg_ha_migrations

Enforces DDL/migration safety in Ruby on Rails project with an emphasis on explicitly choosing trade-offs and avoiding unnecessary magic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ensure that generated index names are <= 63 bytes

rkrage opened this issue · comments

The max length for Postgres identifiers is 63 bytes. Recently, Rails introduced a mechanism for hashing index metadata to ensure generated index names are under this limit: rails/rails#47753

It would be really helpful to backport this functionality, particularly to avoid extra validation when creating an index on a sub-partitioned table.