Skip to content

Commit

Permalink
add publisher uniq constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Dec 18, 2023
1 parent 1593d55 commit eb09b93
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defmodule Core.Repo.Migrations.AddPublisherUniqConstraint do
use Ecto.Migration

def change do
create unique_index(:publishers, [:name])
end
end

0 comments on commit eb09b93

Please sign in to comment.