ash_postgres
ash_postgres copied to clipboard
The PostgreSQL data layer for Ash Framework
I had a resource with a start_date with an index but I renamed it to date and while generating the migration it switched the order around by first adding an...
**Describe the bug** When auto-generating migrations, prefixes are not taken into account. **To Reproduce** ``` 1. Create this module: defmodule Leuchtturm.Auth.Identity do @moduledoc false use Ash.Resource, domain: Leuchtturm.Auth, data_layer: AshPostgres.DataLayer...
**Describe the bug** It is the same issue like https://github.com/ash-project/ash_postgres/issues/173. Having the following relationship: ```elixir has_one :latest_exchange_rate, App.Resources.ExchangeRate do api App.Api from_many? true no_attributes? true private? true sort inserted_at: :desc...
**Describe the bug** Migration produces unique indexes too late in the script for relationships that depend on them. **To Reproduce** I've got a recource that is a many-to-many table. I...
**Describe the bug** I've set up a new Phoenix app to test out Igniter setup, and run into an issue with AshPostgres. ``` ==> phoenix_ecto Compiling 7 files (.ex) **...
**Describe the bug** Resource has `belongs_to :parent, __MODULE__` relationship and `has_many :ancestors, __MODULE__, manual: Observer.Graph.Node.AncestorsRelationship` relationship that fetches all parents recursively (full code bellow). Im calling ```elixir Observer.Graph.Node |> Ash.Query.filter(id...
**Describe the bug** The functions installed by Ash generate these warnings when used with a Supabase DB. (I naively assume these warnings have some merit if included with a large...
**Is your feature request related to a problem? Please describe.** When defining generated attributes for a resource, I often see people needing to manually edit the migration to use ALTER...