ash_postgres/priv/test_repo/migrations/20221125171150_migrate_resources5.exs
Zach Daniel 059837651d improvement: add unique constraints to changeset for custom unique indexes
improvement: separate out concurrent index creations and do them in a separate transaction
2022-11-25 14:06:22 -05:00

22 lines
No EOL
614 B
Elixir

defmodule AshPostgres.TestRepo.Migrations.MigrateResources5 do
@moduledoc """
Updates resources based on their most recent snapshots.
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
@disable_ddl_transaction true
@disable_migration_lock true
def up do
create index(:posts, ["uniq_custom_one", "uniq_custom_two"], unique: true, concurrently: true)
end
def down do
drop_if_exists index(:posts, ["uniq_custom_one", "uniq_custom_two"],
name: "posts_uniq_custom_one_uniq_custom_two_index"
)
end
end