Fix/236 unique index before self fk#705
Open
WillG2001 wants to merge 10 commits intoash-project:mainfrom
Open
Conversation
Contributor
Author
Summary
Background / MotivationWhen a resource uses:
the migration generator previously produced migrations where the foreign key on Fixes issue: #236 Implementation
How to testFrom the Run the focused regression testmix test test/migration_generator_test.exs --only issue_236 Run the full test suitemix test Static analysis (as per project conventions)mix credo |
Made-with: Cursor
zachdaniel
reviewed
Mar 3, 2026
zachdaniel
reviewed
Mar 3, 2026
| identity: identity, | ||
| schema: snapshot.schema, | ||
| table: snapshot.table, | ||
| insert_after_attribute_order: max(0, length(snapshot.attributes) - 1), |
Contributor
There was a problem hiding this comment.
Doesn't this just end up placing them at the end if its using the max order?
Contributor
There was a problem hiding this comment.
If its being used to sort after a given attribute then it would make sense to track the name instead I think.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contributor checklist
Leave anything that you believe does not apply unchecked.