The PostgreSQL data layer for Ash Framework

ash data-layer database elixir postgres postgresql
3 Open Issues Need Help Last updated: Jun 19, 2025

Open Issues Need Help

View All on GitHub

AI Summary: Debug and fix a bug in the AshPostgres library where removing the `:context` multitenancy option causes invalid migrations to be generated. The issue arises when dropping foreign key constraints that no longer exist, resulting in migration failures. The provided reproduction repository should be used to identify and correct the root cause within the AshPostgres migration generation process.

Complexity: 4/5
bug good first issue

The PostgreSQL data layer for Ash Framework

Elixir
#ash#data-layer#database#elixir#postgres#postgresql

AI Summary: Fix a bug in the AshPostgres migration generator where the `down` migration incorrectly orders renaming a column and changing its nullability, leading to migration failures. The solution involves reversing the order of operations in the `down` function to correctly rename the column after modifying its nullability.

Complexity: 3/5
bug good first issue

The PostgreSQL data layer for Ash Framework

Elixir
#ash#data-layer#database#elixir#postgres#postgresql

AI Summary: Improve AshPostgres's `ash.codegen` to prevent the generation of empty migration files and snapshots for resources lacking attributes or relationships. The current behavior leads to errors when subsequently adding attributes and running migrations.

Complexity: 4/5
enhancement good first issue

The PostgreSQL data layer for Ash Framework

Elixir
#ash#data-layer#database#elixir#postgres#postgresql