mirror of
https://github.com/danbee/chess
synced 2026-06-22 13:52:22 +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
|