cannot be explicitlyGetting error when generating migration: "...converted to an Ecto default"
I'm getting this error when trying to generate a migration:
I didn't have any new changes, and the error gave me no information about where in the codebase the problem came from. After some investigating and guessing, I discovered it was from this
attribute
:
First, I changed it to this:
Then, I wanted to follow the advice from the error, configure its default value in
migration_defaults in the postgres section
. The documentation wasn't clear on the syntax for the migration_defaults
, so I guessed it should look like this:
After trying to generate the migration again, a new error appeared:2 Replies
continued...
Okay, so solution is to use this syntax to define the default:
I didn't see documentation that described how to do that.
🤔 that looks pretty strange
ah, okay I see
Yeah, we should make sure the values are strings
could you make an issue for this on
ash_postgres
?