Migration not keeping varchar size information
Not sure if I found a bug or not.
But if I have this attribute in my migration:
and then, after generating the first migration, add this:
Ash will generate this migration:
This migration doesn't contain any information about the varchar size in it.
Now, if I actually have both the attribute and the
migration_types
in the resource before the first migration being generated, I will get the correct migration:
4 Replies
I think similar to the other issue you want to ignore this field on one of the resources.
There is only one resource in this case
Oh…interesting
Can you make an issue on ash_postgres for this?
And ideally a test in the migration generator test illustrating this behavior
GitHub
varchar size info for a column that already exists is missing from ...
Describe the bug Adding a specific size for a string/varchar field will not show in the migration file if the column already exists from another migration. To Reproduce First create the following r...