Please sign in to comment.
`ActiveRecord::SchemaMigration` has no primary key.
Before this patch, using `ActiveRecord::Base.primary_key_prefix_type` with `:table_name_with_underscore` would change the `SchemaMigration` model to have a primary key. This resulted in broken queries for PG because it tried to return the inserted PK (which does not exist). Closes #15051. Closes #15419.
- Loading branch information...
Showing with 24 additions and 0 deletions.