mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 00:14:48 +00:00
17a6a6eada
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
11 lines
239 B
Elixir
11 lines
239 B
Elixir
defmodule Mobilizon.Storage.Repo.Migrations.AddIndexToAddresses do
|
|
use Ecto.Migration
|
|
|
|
def up do
|
|
create_if_not_exists(unique_index("addresses", [:url]))
|
|
end
|
|
|
|
def down do
|
|
drop_if_exists(index("addresses", [:url]))
|
|
end
|
|
end
|