1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-23 00:14:48 +00:00
mobilizon/priv/repo/migrations/20200928150725_add_contacts_to_events.exs

11 lines
350 B
Elixir
Raw Normal View History

defmodule Mobilizon.Storage.Repo.Migrations.AddContactsToEvents do
use Ecto.Migration
def change do
create table(:event_contacts, primary_key: false) do
add(:event_id, references(:events, on_delete: :delete_all), primary_key: true)
add(:actor_id, references(:actors, on_delete: :delete_all), primary_key: true)
end
end
end