Files
anonbb/priv/repo/migrations/20191005220011_unique_room_name.exs
Alek Ratzloff fe85447557 Initial commit
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2019-10-09 08:59:53 -04:00

8 lines
180 B
Elixir

defmodule Anonbb.Repo.Migrations.UniqueRoomName do
use Ecto.Migration
def change do
create index(:rooms, ["lower(name)"], name: :rooms_name_index, unique: true)
end
end