1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-25 17:28:05 +00:00
mobilizon/priv/repo/migrations/20190531131458_attach-pictures-to-actors.exs

10 lines
240 B
Elixir
Raw Normal View History

2019-05-31 15:58:03 +00:00
defmodule :"Elixir.Mobilizon.Repo.Migrations.Attach-pictures-to-actors" do
use Ecto.Migration
def change do
alter table(:pictures) do
add(:actor_id, references(:actors, on_delete: :delete_all), null: false)
end
end
end