mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
bugfix: ensure repo is compiled (#80)
This commit is contained in:
parent
50b397d7dd
commit
4a1f1880ff
1 changed files with 2 additions and 0 deletions
|
@ -1517,6 +1517,8 @@ defmodule AshPostgres.MigrationGenerator do
|
|||
defp pad(i), do: to_string(i)
|
||||
|
||||
def get_snapshots(resource, all_resources) do
|
||||
Code.ensure_compiled!(AshPostgres.repo(resource))
|
||||
|
||||
if AshPostgres.polymorphic?(resource) do
|
||||
all_resources
|
||||
|> Enum.flat_map(&Ash.Resource.Info.relationships/1)
|
||||
|
|
Loading…
Reference in a new issue