Warn on console when a generated migration contains reviewable steps

Open
#142 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@colenelson0 is already working on this.

Since May 5, 2026.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
elixir, postgresql
Domain
databases

Research direction

Start by locating the generated-migration flow and the point where destructive steps are commented out. Add a console warning only when steps need review, then verify that the warning appears for such migrations and not for migrations without commented-out steps.

Written by the indexing model from the issue text.

Description

enhancement

Is your feature request related to a problem? Please describe.

Destructive actions are commented out in generated migrations, but it's not clear to the user that something in the migration needs review.

Describe the solution you'd like

Ideally you should always review your migrations, but it'd be great to remind people of this with a note to this effect. Eg

Please always manually review the generated migrations for correctness

When there is something for review we should warn the user more emphatically to do so. Eg

Warning: there are migration steps commented out and in need of manual review

Dominant language
Elixir
Stars
191
Forks
186
Avg merge
16h 4m
Merged PRs (30d)
17

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ash-project/ash_postgres

All issues in ash-project/ash_postgres

Similar issues

More Elixir issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.