Modifying existing unique index on Ecto

You could define an up and down function and just use execute/1 with raw SQL (then you also have to define the reverse operations in the down/0 function.
Or you skip the renaming and just drop the old index and create the new one in the migration.

3 Likes