Commit 6b38f657 authored by James Laver's avatar James Laver

Add unique constraint on user preferred_username

parent 3ce52980
# MoodleNet: Connecting and empowering educators worldwide
# Copyright © 2018-2019 Moodle Pty Ltd <https://moodle.com/moodlenet/>
# Contains code from Pleroma <https://pleroma.social/> and CommonsPub <https://commonspub.org/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule MoodleNet.Repo.Migrations.MakePreferredUsernameUnique do
use ActivityPub.Migration
def change do
create unique_index(:activity_pub_actor_aspects, :preferred_username)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment