mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-29 03:15:27 +00:00
15 lines
303 B
Elixir
15 lines
303 B
Elixir
|
defmodule Mobilizon.Repo.Migrations.CreateTombstones do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
create table(:tombstones) do
|
||
|
add(:uri, :string)
|
||
|
add(:actor_id, references(:actors, on_delete: :delete_all))
|
||
|
|
||
|
timestamps()
|
||
|
end
|
||
|
|
||
|
create(unique_index(:tombstones, [:uri]))
|
||
|
end
|
||
|
end
|