cc820d6b63
* Data doesn't need anymore to be converted to ActivityStream format to be saved (this was taken from Pleroma and not at all a good idea here) * Everything saved when creating an event is inserted into PostgreSQL in a single transaction
9 lines
202 B
Elixir
9 lines
202 B
Elixir
defmodule Mobilizon.Storage.Repo.Migrations.AddUniqueIndexOnURLs do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
create(unique_index(:events, [:url]))
|
|
create(unique_index(:comments, [:url]))
|
|
end
|
|
end
|