After upgrading from 24.1 to 24.2, there is a no indexes found error and a no support for composite primary keys when running rails migration. This seems to be happening exclusively on Regional by Row tables with PKs and indexes that include the hidden crdb_region column
It looks like the culprit could be that the crdb_region column is now included in pg_index.indkey
Issue 1
== migrating ============================
-- remove_index(:redacted_table_name, "redacted_table_name_id", {:algorithm=>:concurrently})
rails aborted!
StandardError: An error has occurred, all later migrations canceled: (StandardError)
No indexes found on redacted_table_name with the options provided.
Caused by:
ArgumentError: No indexes found on redacted_table_name with the options provided. (ArgumentError)
raise ArgumentError, "No indexes found on #{table_name} with the options provided."
Tasks: TOP => db:migrate
Issue 2
WARNING: Active Record does not support composite primary key.
redacted_table_name has composite primary key. Composite primary key is ignored.