Put unique index on participants urls
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ecf7bb1fef
commit
042d09b8cb
@ -0,0 +1,11 @@
|
||||
defmodule Mobilizon.Storage.Repo.Migrations.PutUniqueIndexOnParticipantsUrls do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
create_if_not_exists(unique_index("participants", [:url]))
|
||||
end
|
||||
|
||||
def down do
|
||||
drop_if_exists(index("participants", [:url]))
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user