95ba76a0fa
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
8 lines
203 B
Elixir
8 lines
203 B
Elixir
defmodule Mobilizon.Storage.Repo.Migrations.AddUniqueIndexOnActorAndEventForParticipant do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create(unique_index(:participants, [:event_id, :actor_id]))
|
|
end
|
|
end
|