Skip to content

Fix temporal relation indexes - #411

Open
tagliala wants to merge 1 commit into
masterfrom
fix/issue-318-relation-indexes
Open

tagliala wants to merge 1 commit into
masterfrom
fix/issue-318-relation-indexes

Conversation

@tagliala

@tagliala tagliala commented Sep 5, 2026

Copy link
Copy Markdown
Member

Summary

Fixes #318.

  • Defer indexes declared in temporal create_table blocks until both backing tables exist.
  • Create relation, polymorphic, column, and explicit indexes in both temporal and history schemas.
  • Preserve index options while keeping history copies non-unique.
  • Add regression coverage.

Validation

  • Rails 8.1: 518 examples, 0 failures
  • Rails 7.0: 500 core examples, 0 failures
  • RuboCop: 87 tracked files, no offenses

Implementation clarified as GPT 6 Astra.

Defer table-definition indexes until both temporal backing tables exist, so relation indexes are created in temporal and history schemas.

Implementation clarified as GPT 6 Astra.
@tagliala
tagliala force-pushed the fix/issue-318-relation-indexes branch from adba1d1 to e701aff Compare September 6, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing relation indexes on historical tables

1 participant