mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
8 lines
158 B
Elixir
8 lines
158 B
Elixir
defmodule Chess.Repo.Migrations.AddUniqueConstraintOnUsername do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create unique_index(:users, [:username])
|
|
end
|
|
end
|