-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error creating migration #2
Comments
It appears to work if I add ex_money and ex_money_sql directly as deps. Not sure it that is intended or not |
I think there is something wrong with the order of postgres migrations, below has an operator defined before money is defined: """
#{Money.DDL.execute_each(add_money_mult())}
#{Money.DDL.execute_each(Money.DDL.create_money_with_currency())}
#{Money.DDL.execute_each(Money.DDL.define_plus_operator())}
#{Money.DDL.execute_each(Money.DDL.define_minmax_functions())}
#{Money.DDL.execute_each(Money.DDL.define_sum_function())}
|
However, I also run into problems with the migrations. Apparently, v2 only installs the multiplication functions and operators, but not the |
@gordoneliel @kiliancs I've added the required steps to the Readme in this PR. Hope this helps. 😃 |
So this turns out to actually have been a bug in AshPostgres custom extensions, which is now fixed in the latest versions. Upgrade both ash_money and ash_postgres for the fix. |
Trying to setup ash money but getting an error while running
mix ash_postgres.generate_migrations
Stacktrace below:
The text was updated successfully, but these errors were encountered: