Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mix task ash_postgres.generate_migrations doesn't say anything about ash_apis applicatione environment. #145

Open
jimsynz opened this issue May 8, 2023 · 0 comments
Assignees

Comments

@jimsynz
Copy link
Contributor

jimsynz commented May 8, 2023

So ash_postgres.generate_migrations takes an --apis option, but it defaults to the contents of the application's ash_apis configuration in the application environment. This is good DX and I endorse it. I should just tell users it's going to do that in it's docs.

configured_apis = Enum.flat_map(apps, &Application.get_env(&1, :ash_apis, []))

@jimsynz jimsynz self-assigned this May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant