Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unneeded Change Added to Migration #611

Open
Labels
bugSomething isn't workinggood first issueGood for newcomers
@JEG2

Description

@JEG2

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Versions

Erlang: 28.0.2
Elixir: 1.18.4-otp-28
Ash: 3.5.37
AshPostgreSQL: 2.6.17

Operating system

macOS Sequoia 15.6.1

Current Behavior

While reading Chapter 2 of the Ash Framework book, I noticed thatash.codegen generated a slightly more verbose migration than was strictly needed:

JEG2/tunez@e19a905#diff-38665c31e93a41d7132c1bff9af04ecb4c757bfd15758d22a5839e64d6d24752

It looks like it is removing a foreign key only to reset it to the same value.

Rebecca Le asked me to open this issue.

Reproduction

This is the code I added before invoking the generator:

JEG2/tunez@e19a905#diff-11818765a97af826d1ca632b019da6be529cbdd9af6f4d2c2231405dec15dccbR64-R67

Expected Behavior

I think it would be enough just to create and drop the index for this change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    Status

    Someday

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp