Description
Is your feature request related to a problem? Please describe.
At the moment, every time we run mix ash_postgres.generate_migrations
, if there are changes, a migration file gets generated with names like 20220619142531_migrate_resources1.exs
.
The problem with this is that when people work on different branches, they end up generating different migration files with the same module name, thus causing conflict.
Describe the solution you'd like
Instead of using 1, 2, 3... to increment the file and module names, a timestamp or UUID will prevent duplicated migration files far better.
So, instead of 20220619142531_migrate_resources1.exs
, we could have either 20220619142531_migrate_ash_resources_20220619142531.exs
or 20220619142531_migrate_ash_resources_863c8c09-a422-47e4-bb31-34a877825f85.exs
.
What do you think?