1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/priv/repo/migrations/20180202195257_add_unique_constraint_on_username.exs

8 lines
158 B
Elixir

defmodule Chess.Repo.Migrations.AddUniqueConstraintOnUsername do
use Ecto.Migration
def change do
create unique_index(:users, [:username])
end
end